exception identifiers
Software Package Data Exchange (SPDX) standard open-source software license identifiers
# File ruby-3.1.2/lib/rubygems/util/licenses.rb, line 532 def self.match?(license) !REGEXP.match(license).nil? end
# File ruby-3.1.2/lib/rubygems/util/licenses.rb, line 536 def self.suggestions(license) by_distance = LICENSE_IDENTIFIERS.group_by do |identifier| levenshtein_distance(identifier, license) end lowest = by_distance.keys.min return unless lowest < license.size by_distance[lowest] end