lib/licensee/matchers/exact.rb in licensee-9.9.2 vs lib/licensee/matchers/exact.rb in licensee-9.9.3
- old
+ new
@@ -1,11 +1,11 @@
module Licensee
module Matchers
class Exact < Licensee::Matchers::Matcher
def match
return @match if defined? @match
- @match = Licensee.licenses(hidden: true).find do |license|
- license.length == @file.length && license.wordset == @file.wordset
+ @match = potential_matches.find do |potential_match|
+ potential_match.wordset == file.wordset
end
end
def confidence
100