Method: Licensee::Matchers::Copyright#match

Defined in:
lib/licensee/matchers/copyright.rb

#matchObject



12
13
14
15
16
17
# File 'lib/licensee/matchers/copyright.rb', line 12

def match
  # NOTE: must use content, and not content_normalized here
  Licensee::License.find('no-license') if /#{REGEX}+\z/io.match?(file.content.strip)
rescue Encoding::CompatibilityError
  nil
end