class Licensee::Matchers::NpmBower
Constants
- LICENSE_REGEX
While we could parse the package.json or bower.json 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/npm_bower.rb, line 14 def license_property match = @file.content.match LICENSE_REGEX match[1].downcase if match && match[1] end