Sha256: cfd3b465ab7568989cafb0bc8eda2548ca348355657bf59bf13cade33d26f6c9
Contents?: true
Size: 466 Bytes
Versions: 15
Compression:
Stored size: 466 Bytes
Contents
# frozen_string_literal: true module Licensee module Matchers # Matches README files that include a license by reference class Reference < Licensee::Matchers::Matcher def match potential_matches.find do |license| title_or_source = [license.title_regex, license.source_regex].compact /\b#{Regexp.union(title_or_source)}\b/ =~ file.content end end def confidence 90 end end end end
Version data entries
15 entries across 15 versions & 1 rubygems