diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-13 16:59:55 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-13 16:59:55 -0600 |
| commit | e7dd449c0fd531ec792737660fb7c8e5ee9fb92b (patch) | |
| tree | 09e5ef646941b49ecce77699b18dab2036cee533 /lib | |
| parent | 3f7b51a72e751d65ab25ef2880d3942050066ffe (diff) | |
Fix linter errors
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/license/finder/ext/yarn.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/license/finder/ext/yarn.rb b/lib/license/finder/ext/yarn.rb index 13057ab..dba096b 100644 --- a/lib/license/finder/ext/yarn.rb +++ b/lib/license/finder/ext/yarn.rb @@ -2,7 +2,7 @@ module LicenseFinder class Yarn - INCOMPATIBLE_PACKAGE_REGEX = /(?<name>[\w,\-]+)@(?<version>(\d+\.?)+)/ + INCOMPATIBLE_PACKAGE_REGEX = /(?<name>[\w,\-]+)@(?<version>(\d+\.?)+)/.freeze PHANTOM_PACKAGE_REGEX = /workspace-aggregator-[a-zA-Z0-9]{8}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{4}-[a-zA-Z0-9]{12}/.freeze def possible_package_paths @@ -88,7 +88,7 @@ module LicenseFinder matches = json['data'].to_s.match(INCOMPATIBLE_PACKAGE_REGEX) return [] unless matches - [YarnPackage.new( matches['name'], matches['version'], spec_licenses: ['unknown'])] + [YarnPackage.new(matches['name'], matches['version'], spec_licenses: ['unknown'])] end end end |
