mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 23:16:25 +02:00
making translator regex stricter, so it doesn't match language strings that won't ever exist
This commit is contained in:
@@ -9,7 +9,7 @@
|
||||
|
||||
var languages = {},
|
||||
regexes = {
|
||||
match: /\[\[[\s\S]*?\]\]/g,
|
||||
match: /\[\[\w+:.+\]\]/g,
|
||||
split: /[,][\s]*/,
|
||||
replace: /\]+$/
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user