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

This commit is contained in:
Julian Lam
2015-07-17 10:21:34 -04:00
parent 65ab5733ef
commit eaa35c8057

View File

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