lib/licensee/matchers/copyright_matcher.rb in licensee-4.7.2 vs lib/licensee/matchers/copyright_matcher.rb in licensee-4.7.3

- old
+ new

@@ -1,11 +1,13 @@ class Licensee class CopyrightMatcher < Matcher - REGEX = /\A(Copyright|Copyright ©|Copyright \(c\)) \d{4}.*?\n?\z/i + REGEX = /\ACopyright (©|\(c\)|\xC2\xA9)? ?\d{4}.*?\n?\z/i def match no_license if file.content.strip =~ REGEX + rescue + nil end def confidence 100 end