summaryrefslogtreecommitdiff
path: root/lib/rubygems/util
diff options
context:
space:
mode:
authorHiroshi SHIBATA <hsbt@ruby-lang.org>2023-04-05 17:06:01 +0900
committergit <svn-admin@ruby-lang.org>2023-04-05 09:50:29 +0000
commite003784fc8bfa527cf21c317741101a713c041c0 (patch)
tree0d69690aec6d5f156ed90241d6beb46e112cc503 /lib/rubygems/util
parent65d27d3c0a1235f04ca90f94e29a7f2ddfd1b574 (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.rb4
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?