Update 0BDFDB.plugin.js

This commit is contained in:
Mirco Wittrien 2024-03-28 18:49:16 +01:00
parent ac32123985
commit 212c201236
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
* @name BDFDB
* @author DevilBro
* @authorId 278543574059057154
* @version 3.5.9
* @version 3.6.0
* @description Required Library for DevilBro's Plugins
* @invite Jx3TjNS
* @donate https://www.paypal.me/MircoWittrien
@ -1402,7 +1402,7 @@ module.exports = (_ => {
let secondReturn = BDFDB.ModuleUtils.find(m => {
if (typeof m != "function") return false;
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;
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});