lib/licensee/matchers/copyright_matcher.rb in licensee-6.1.1 vs lib/licensee/matchers/copyright_matcher.rb in licensee-7.0.0

- old
+ new

@@ -1,7 +1,7 @@ # encoding=utf-8 -class Licensee +module Licensee module Matchers class Copyright REGEX = /\s*Copyright (©|\(c\)|\xC2\xA9)? ?(\d{4}|\[year\])(.*)?\s*/i def initialize(file) @@ -9,10 +9,10 @@ end def match # Note: must use content, and not content_normalized here if @file.content.strip =~ /\A#{REGEX}\z/i - Licensee::License.find("no-license") + Licensee::License.find('no-license') end rescue nil end