summaryrefslogtreecommitdiff
path: root/lib/rubygems/util
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2023-04-30 12:28:07 +0900
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2023-05-01 17:40:02 +0900
commitdd5ba1b725036d59ae473f5679057762cea54515 (patch)
tree436e6a964faddefd154b761be51e5ad3067743d5 /lib/rubygems/util
parent90baadb904d7b952b7e596be8c1f9a50ef729b3a (diff)
Update generate_spdx_license_list.rb
- Follow up RegexpLiteral at 9264d834215aa7ce14b0273032a7686c20141db9. - Split the code to be generated so that `REGEXP` does not need escapes. - Use `REGEXP.match?` since support for Ruby 2.3 or earlier has been dropped.
Diffstat (limited to 'lib/rubygems/util')
-rw-r--r--lib/rubygems/util/licenses.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/util/licenses.rb b/lib/rubygems/util/licenses.rb
index 6bb05deee0..4f7626e662 100644
--- a/lib/rubygems/util/licenses.rb
+++ b/lib/rubygems/util/licenses.rb
@@ -578,7 +578,7 @@ class Gem::Licenses
/ox.freeze
def self.match?(license)
- !REGEXP.match(license).nil?
+ REGEXP.match?(license)
end
def self.suggestions(license)