[PCCompatCheck] Better module.exports ignoring (accept no value inline)

This commit is contained in:
Ducko 2021-06-07 19:01:55 +01:00 committed by Alyxia Sother
parent 2db8ae01c4
commit da87247f5d
No known key found for this signature in database
GPG Key ID: 355968D14144B739
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ for (const jsFile of glob.sync(`${cloneDir}/**/*.js`).concat(glob.sync(`${cloneD
imp = imp.trim().split(':')[0];
const searchRegex1 = new RegExp(`^export.*${imp}.*$`, 'gm');
const searchRegex2 = new RegExp(`^ *${imp}: `, 'gm');
const searchRegex2 = new RegExp(`^ *${imp}[:,]`, 'gm');
const searchMatch = aliasJS.match(searchRegex1) || aliasJS.match(searchRegex2);