summaryrefslogtreecommitdiff
path: root/lib/rubygems/util/licenses.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/util/licenses.rb')
-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?