diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-05 17:06:01 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-05 09:50:29 +0000 |
commit | e003784fc8bfa527cf21c317741101a713c041c0 (patch) | |
tree | 0d69690aec6d5f156ed90241d6beb46e112cc503 /lib/rubygems/util | |
parent | 65d27d3c0a1235f04ca90f94e29a7f2ddfd1b574 (diff) |
[rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral
https://github.com/rubygems/rubygems/commit/9264d83421
Diffstat (limited to 'lib/rubygems/util')
-rw-r--r-- | lib/rubygems/util/licenses.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rubygems/util/licenses.rb b/lib/rubygems/util/licenses.rb index a26e964728..6bb05deee0 100644 --- a/lib/rubygems/util/licenses.rb +++ b/lib/rubygems/util/licenses.rb @@ -565,7 +565,7 @@ class Gem::Licenses x11vnc-openssl-exception ].freeze - REGEXP = %r{ + REGEXP = / \A (?: #{Regexp.union(LICENSE_IDENTIFIERS)} @@ -575,7 +575,7 @@ class Gem::Licenses | #{LICENSE_REF} ) \Z - }ox.freeze + /ox.freeze def self.match?(license) !REGEXP.match(license).nil? |