We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 67fd72d commit 769ede5Copy full SHA for 769ede5
1 file changed
src/license-plugin.js
@@ -187,7 +187,7 @@ class LicensePlugin {
187
188
// Read license file, if it exists.
189
const cwd = this._cwd || process.cwd();
190
- const absolutePath = path.join(dir, 'LICENSE*');
+ const absolutePath = path.join(dir, '[lL][iI][cC][eE][nN][cCsS][eE]*');
191
const relativeToCwd = path.relative(cwd, absolutePath);
192
const licenseFile = this._findGlob(relativeToCwd, cwd)[0];
193
if (licenseFile) {
@@ -343,7 +343,6 @@ class LicensePlugin {
343
_findGlob(pattern, cwd) {
344
return glob.sync(pattern, {
345
cwd,
346
- nocase: true,
347
});
348
}
349
0 commit comments