ignore license*.gemspec, like .header and .spdx

Fixes #308
This commit is contained in:
Mike Linksvayer 2018-07-16 11:08:58 -07:00 committed by GitHub
parent 9bc8916d88
commit 2ac4b6d4fc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ module Licensee
PREFERRED_EXT_REGEX = /\.#{Regexp.union(PREFERRED_EXT)}\z/
# Regex to match any extension except .spdx or .header
OTHER_EXT_REGEX = %r{\.(?!spdx|header)[^./]+\z}i
OTHER_EXT_REGEX = %r{\.(?!spdx|header|gemspec)[^./]+\z}i
# Regex to match, LICENSE, LICENCE, unlicense, etc.
LICENSE_REGEX = /(un)?licen[sc]e/i