lib/licensee/project_files/license_file.rb in licensee-8.8.1 vs lib/licensee/project_files/license_file.rb in licensee-8.8.2

- old
+ new

@@ -38,11 +38,14 @@ def possible_matchers [Matchers::Copyright, Matchers::Exact, Matchers::Dice] end def attribution - matches = /^#{Matchers::Copyright::REGEX}$/i.match(content) - matches[0].strip if matches + @attribution ||= begin + matches = Matchers::Copyright::REGEX + .match(content_without_title_and_version) + matches[0] if matches + end end # Is this file likely to result in a creative commons false positive? def potential_false_positive? content.strip =~ CC_FALSE_POSITIVE_REGEX