Fix bug where translator would split on all colons, and not just the first

v1.18.x
Julian Lam 10 years ago
parent f8f3e3faa7
commit 1b812068ca

@ -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);
}

Loading…
Cancel
Save