From e003784fc8bfa527cf21c317741101a713c041c0 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Wed, 5 Apr 2023 17:06:01 +0900 Subject: [rubygems/rubygems] util/rubocop -A --only Style/RegexpLiteral https://github.com/rubygems/rubygems/commit/9264d83421 --- lib/rubygems/util/licenses.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/rubygems/util/licenses.rb') 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? -- cgit v1.2.3