lib/licensee/matchers/copyright.rb in licensee-9.9.0.beta.3 vs lib/licensee/matchers/copyright.rb in licensee-9.9.0
- old
+ new
@@ -3,10 +3,10 @@
class Copyright < Licensee::Matchers::Matcher
attr_reader :file
# rubocop:disable Metrics/LineLength
COPYRIGHT_SYMBOLS = Regexp.union([/copyright/i, /\(c\)/i, "\u00A9", "\xC2\xA9"])
- REGEX = /\A\s*#{COPYRIGHT_SYMBOLS}.*$/i
+ REGEX = /\A(\s*#{COPYRIGHT_SYMBOLS}.*$)+/i
# rubocop:enable Metrics/LineLength
def match
# Note: must use content, and not content_normalized here
if @file.content.strip =~ /\A#{REGEX}\z/i