lib/licensee/project_files/license_file.rb in licensee-9.9.1 vs lib/licensee/project_files/license_file.rb in licensee-9.9.2

- old
+ new

@@ -6,10 +6,10 @@ # List of extensions to give preference to PREFERRED_EXT = %w[md markdown txt].freeze 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 # Regex to match COPYING, COPYRIGHT, etc.