fix style

This commit is contained in:
Aaron Ruan 2024-05-26 17:00:42 +08:00
parent 2fcbff8ee2
commit 7da9ea07d0
No known key found for this signature in database
GPG Key ID: EF612DB3936CDD62

View File

@ -895,7 +895,7 @@ module Cask
sig { returns(T::Boolean) }
def bad_osdn_url?
cask.url.to_s.match?(/^(?:https?:\/\/)?(?:\w+\.)*osdn\.jp(?=\/|$)/)
cask.url.to_s.match?(%r{^(?:https?://)?(?:\w+\.)*osdn\.jp(?=/|$)})
end
# sig { returns(String) }