Sha256: 82d012a07337b7d5b62b46424833b95150704db1ba022e4c4d75c5740e4d7e58
Contents?: true
Size: 371 Bytes
Versions: 4
Compression:
Stored size: 371 Bytes
Contents
# encoding=utf-8 class Licensee class CopyrightMatcher < Matcher 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 private def no_license @no_license ||= Licensee::License.find("no-license") end end end
Version data entries
4 entries across 4 versions & 1 rubygems