class Licensee::Matchers::Spdx
Constants
- LICENSE_REGEX
While we could parse the LICENSE.spdx file, prefer a lenient regex for speed and security. Moar parsing moar problems.
Private Instance Methods
license_property()
click to toggle source
# File lib/licensee/matchers/spdx.rb, line 12 def license_property match = @file.content.match LICENSE_REGEX match[1].downcase if match && match[1] end