aboutsummaryrefslogtreecommitdiff
path: root/update
diff options
context:
space:
mode:
authorMinteck <contact@minteck.org>2022-02-04 14:38:15 +0100
committerMinteck <contact@minteck.org>2022-02-04 14:38:15 +0100
commit094b326d5ddaf338a7bc1a5d1210cae958cba814 (patch)
treeb6006c3970fe4c356e9904705ada735a3b53378f /update
parente0abea610fe00b4c482db5fa8fa0ce26c5d8e64a (diff)
downloadponyfind-094b326d5ddaf338a7bc1a5d1210cae958cba814.tar.gz
ponyfind-094b326d5ddaf338a7bc1a5d1210cae958cba814.tar.bz2
ponyfind-094b326d5ddaf338a7bc1a5d1210cae958cba814.zip
Version 1.0 (release)
Diffstat (limited to 'update')
-rw-r--r--update/parse.js2
1 files changed, 1 insertions, 1 deletions
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(/<!--[\s\S]*?-->/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;