Update PluginRepo.plugin.js
This commit is contained in:
parent
90ca50e8cb
commit
576daa0b24
|
@ -5,8 +5,8 @@ module.exports = (_ => {
|
|||
"info": {
|
||||
"name": "PluginRepo",
|
||||
"author": "DevilBro",
|
||||
"version": "2.0.6",
|
||||
"description": "Allows you to look at all plugins from the plugin repo and download them on the fly. Repo button is in the plugins settings."
|
||||
"version": "2.0.7",
|
||||
"description": "Allows you to look at all plugins from the plugin repo and download them on the fly."
|
||||
}
|
||||
};
|
||||
return !window.BDFDB_Global || (!window.BDFDB_Global.loaded && !window.BDFDB_Global.started) ? class {
|
||||
|
@ -741,7 +741,7 @@ module.exports = (_ => {
|
|||
}
|
||||
let bodyWithoutSpecial = bodyCopy.replace(/\n|\r|\t/g, "").replace(/\n|\r|\t/g, "").replace(/\s{2,}/g, "");
|
||||
let configReg = /(\.exports|config)\s*=\s*\{(.*?)\s*["'`]*info["'`]*\s*:\s*/i.exec(bodyWithoutSpecial);
|
||||
if (url != "https://raw.githubusercontent.com/mwittrien/BetterDiscordAddons/master/Plugins/PluginRepo/PluginRepo.plugin.js" && configReg) {
|
||||
if (configReg) {
|
||||
try {
|
||||
extractConfigInfo(plugin, JSON.parse('{"info":' + bodyWithoutSpecial.substring(configReg.index).split(configReg[0])[1].split("};")[0].split("}},")[0] + '}'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue