mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[PCCompatCheck] Better module.exports ignoring (accept no value inline)
This commit is contained in:
parent
2db8ae01c4
commit
da87247f5d
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue