making translator regex stricter, so it doesn't match language strings that won't ever exist

v1.18.x
Julian Lam 10 years ago
parent 65ab5733ef
commit eaa35c8057

@ -9,7 +9,7 @@
var languages = {}, var languages = {},
regexes = { regexes = {
match: /\[\[[\s\S]*?\]\]/g, match: /\[\[\w+:.+\]\]/g,
split: /[,][\s]*/, split: /[,][\s]*/,
replace: /\]+$/ replace: /\]+$/
}; };

Loading…
Cancel
Save