Skip to content

Commit

Permalink
fixed failling test
Browse files Browse the repository at this point in the history
Fixed test [toVsixManifest] should automatically detect license files:
  • Loading branch information
Andrewnt219 committed Oct 12, 2021
1 parent e92377b commit 0c886f5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/package.ts
Original file line number Diff line number Diff line change
Expand Up @@ -823,8 +823,7 @@ class LicenseProcessor extends BaseProcessor {

if (!match || !match[1]) {
this.expectedLicenseName = 'LICENSE.md or LICENSE.txt';
const matchLicenseName = new RegExp('^extension\\/' + this.expectedLicenseName + '(\\.(md|txt))?$', 'i');
this.filter = name => matchLicenseName.test(name);
this.filter = name => /^extension\/license(\.(md|txt))?$/i.test(name);
} else {
this.expectedLicenseName = match[1];
const regexp = new RegExp('^extension/' + this.expectedLicenseName + '$');
Expand Down

0 comments on commit 0c886f5

Please sign in to comment.