diff options
author | Minteck <contact@minteck.org> | 2022-01-19 17:41:42 +0100 |
---|---|---|
committer | Minteck <contact@minteck.org> | 2022-01-19 17:41:42 +0100 |
commit | e0d933d5734e331c15a299c50c22ec06171a914f (patch) | |
tree | 40e3acb25c14a66c2004c1a9d2abc5a317223219 /update/parse.js | |
parent | 1f7f1dc76beef28156d3a9066adc26c98ed95471 (diff) | |
parent | 4be58e9d499e2f2610c179520241b3329b8a622f (diff) | |
download | ponyfind-e0d933d5734e331c15a299c50c22ec06171a914f.tar.gz ponyfind-e0d933d5734e331c15a299c50c22ec06171a914f.tar.bz2 ponyfind-e0d933d5734e331c15a299c50c22ec06171a914f.zip |
Update
Diffstat (limited to 'update/parse.js')
-rw-r--r-- | update/parse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/update/parse.js b/update/parse.js index ebcd9e3..5be5ae5 100644 --- a/update/parse.js +++ b/update/parse.js @@ -49,7 +49,7 @@ let ponies = {}; } else { data.extract_fr = data.extract; } - if (typeof box.coat !== "undefined") data.color = box.coat.replace(/<!--[\s\S]*?-->/g, "").trim().replace(/\[(.*)\/(.{6})\/ (.*)\]/gm, "$2").replace(/{{perbang\|([0-9A-Fa-f].{5})(.*)/g, "$1"); + if (typeof box.coat !== "undefined") data.color = box.coat.replace(/<!--[\s\S]*?-->/g, "").trim().replace(/\[([a-z.\/ \nA-Z0-9:]*)\/(.{6})\/ (.*)\]/gm, "$2").replace(/{{perbang\|([0-9A-Fa-f].{5})(.*)/g, "$1"); if (typeof box.main !== "undefined") data.image = "https://mlp.fandom.com/Special:FilePath/" + encodeURI(box.main.replace(/<!--[\s\S]*?-->/g, "").trim()); if (typeof box.main1 !== "undefined") data.image = "https://mlp.fandom.com/Special:FilePath/" + encodeURI(box.main1.replace(/<!--[\s\S]*?-->/g, "").trim()); if (typeof box.image !== "undefined") data.image = "https://mlp.fandom.com/Special:FilePath/" + encodeURI(box.image.replace(/<!--[\s\S]*?-->/g, "").trim()); |