mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-16 19:10:17 +02:00
Fix bug where translator would split on all colons, and not just the first
This commit is contained in:
@@ -168,6 +168,7 @@
|
||||
var variables = key.split(regexes.split);
|
||||
|
||||
var parsedKey = key.replace('[[', '').replace(']]', '').split(':');
|
||||
parsedKey = [parsedKey[0]].concat(parsedKey.slice(1).join(':'));
|
||||
if (!(parsedKey[0] && parsedKey[1])) {
|
||||
return callback(data);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user