Skip to content

Commit 769ede5

Browse files
authored
fix: licencefile glob on windows (#931)
1 parent 67fd72d commit 769ede5

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/license-plugin.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ class LicensePlugin {
187187

188188
// Read license file, if it exists.
189189
const cwd = this._cwd || process.cwd();
190-
const absolutePath = path.join(dir, 'LICENSE*');
190+
const absolutePath = path.join(dir, '[lL][iI][cC][eE][nN][cCsS][eE]*');
191191
const relativeToCwd = path.relative(cwd, absolutePath);
192192
const licenseFile = this._findGlob(relativeToCwd, cwd)[0];
193193
if (licenseFile) {
@@ -343,7 +343,6 @@ class LicensePlugin {
343343
_findGlob(pattern, cwd) {
344344
return glob.sync(pattern, {
345345
cwd,
346-
nocase: true,
347346
});
348347
}
349348

0 commit comments

Comments
 (0)