From 094b326d5ddaf338a7bc1a5d1210cae958cba814 Mon Sep 17 00:00:00 2001 From: Minteck Date: Fri, 4 Feb 2022 14:38:15 +0100 Subject: Version 1.0 (release) --- update/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'update') diff --git a/update/parse.js b/update/parse.js index 5be5ae5..0b2baa9 100644 --- a/update/parse.js +++ b/update/parse.js @@ -74,7 +74,7 @@ let ponies = {}; box.residence/*.replace(/\[\[(.*)_(.*)\]\]|\[\[(.*)\|(.*)\]\]|\[\[(.*)\]\]/gm, "$2$4$5")*/.replace(//g, "").trim().replace(/\|/gm, "_").replace(/<( ||(|| )\/)( ||(|| )\/)(b|B)(r|R)( ||(|| )\/)( ||(|| )\/)>/gm, "|").replace(/( \|| \| | \| )/gm, "|").split("|").forEach((e) => { residences.push(e.trim().replace(/[\[\]]/gm, "").replace(/<(.*)>/gm, "").replace(/([a-zA-Z0-9 \-_,.'"]*)_([a-zA-Z0-9 \-_,.'"]*)/gm, "$2")); }) - data.residence = residences; + data.residence = residences.replaceAll("Locations#", ""); } if ((typeof box.name2 !== "undefined" || typeof box.name3 !== "undefined" || typeof box.name4 !== "undefined" || typeof box.name5 !== "undefined" || typeof box.coat !== "undefined" || typeof box.occupation !== "undefined" || typeof box.residence !== "undefined") && typeof box.sex !== "undefined") ponies[title] = data; -- cgit