Update 0BDFDB.plugin.js
This commit is contained in:
parent
ac32123985
commit
212c201236
|
@ -2,7 +2,7 @@
|
||||||
* @name BDFDB
|
* @name BDFDB
|
||||||
* @author DevilBro
|
* @author DevilBro
|
||||||
* @authorId 278543574059057154
|
* @authorId 278543574059057154
|
||||||
* @version 3.5.9
|
* @version 3.6.0
|
||||||
* @description Required Library for DevilBro's Plugins
|
* @description Required Library for DevilBro's Plugins
|
||||||
* @invite Jx3TjNS
|
* @invite Jx3TjNS
|
||||||
* @donate https://www.paypal.me/MircoWittrien
|
* @donate https://www.paypal.me/MircoWittrien
|
||||||
|
@ -1402,7 +1402,7 @@ module.exports = (_ => {
|
||||||
let secondReturn = BDFDB.ModuleUtils.find(m => {
|
let secondReturn = BDFDB.ModuleUtils.find(m => {
|
||||||
if (typeof m != "function") return false;
|
if (typeof m != "function") return false;
|
||||||
let stringified = m.toString().replace(/\s/g, "");
|
let stringified = m.toString().replace(/\s/g, "");
|
||||||
if (stringified.indexOf(".exports={") == -1 || !/function\([A-z],[A-z],[A-z]\)\{"usestrict";[A-z]\.exports=\{/.test(stringified)) return false;
|
if (stringified.indexOf(".exports={") == -1 || !(/function\([A-z],[A-z],[A-z]\)\{"usestrict";[A-z]\.exports=\{/.test(stringified) || /function\([A-z]\)\{"usestrict";[A-z]\.exports=\{/.test(stringified))) return false;
|
||||||
let amount = stringified.split(":\"").length - 1;
|
let amount = stringified.split(":\"").length - 1;
|
||||||
return (!config.length || (config.smaller ? amount < config.length : amount == config.length)) && [props].flat(10).every(string => stringified.indexOf(`${string}:`) > -1) && m;
|
return (!config.length || (config.smaller ? amount < config.length : amount == config.length)) && [props].flat(10).every(string => stringified.indexOf(`${string}:`) > -1) && m;
|
||||||
}, {onlySearchUnloaded: true, all: config.all, defaultExport: config.defaultExport});
|
}, {onlySearchUnloaded: true, all: config.all, defaultExport: config.defaultExport});
|
||||||
|
|
Loading…
Reference in New Issue