Class: Licensee::Matchers::NpmBower

Inherits:
Package
  • Object
show all
Defined in:
lib/licensee/matchers/npm_bower_matcher.rb

Constant Summary collapse

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.

/\s*[\"\']license[\"\']\s*\:\s*[\'\"]([a-z\-0-9\.]+)[\'\"],?\s*/i

Method Summary

Methods inherited from Package

#confidence, #initialize, #match

Constructor Details

This class inherits a constructor from Licensee::Matchers::Package