From 1b812068ca850128e0beca8b02fcf920d0cb42b9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 11 Aug 2015 17:09:05 -0400 Subject: [PATCH] Fix bug where translator would split on all colons, and not just the first --- public/src/modules/translator.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/src/modules/translator.js b/public/src/modules/translator.js index 42efe5c529..8d37c1f004 100644 --- a/public/src/modules/translator.js +++ b/public/src/modules/translator.js @@ -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); }