lib/licensee/matchers/spdx.rb in licensee-9.10.1 vs lib/licensee/matchers/spdx.rb in licensee-9.11.0
- old
+ new
@@ -1,10 +1,10 @@
module Licensee
module Matchers
class Spdx < Licensee::Matchers::Package
# While we could parse the LICENSE.spdx file, prefer
# a lenient regex for speed and security. Moar parsing moar problems.
- LICENSE_REGEX = /PackageLicenseDeclared:\s*([a-z\-0-9\. +()]+)\s*/i
+ LICENSE_REGEX = /PackageLicenseDeclared:\s*([a-z\-0-9\. +()]+)\s*/i.freeze
private
def license_property
match = @file.content.match LICENSE_REGEX