From d532b054d6fcd05883fae2ff3fec2fb08e00d6f7 Mon Sep 17 00:00:00 2001 From: Darren Date: Mon, 14 Apr 2014 14:47:41 +0100 Subject: [PATCH] Don't specify the textTheme params within its regex --- client/src/helpers/utils.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/client/src/helpers/utils.js b/client/src/helpers/utils.js index d83ca1f..5ccacb3 100644 --- a/client/src/helpers/utils.js +++ b/client/src/helpers/utils.js @@ -539,9 +539,7 @@ function styleText(string_id, params) { } // Do the magic. Use the shorthand syntax to produce output. - text = style.replace(/%([TJHNCR])/g, function(match, key) { - key = '%' + key; - + text = style.replace(/(%[A-Z])/g, function(match, key) { if (typeof params[key.toUpperCase()] !== 'undefined') return params[key.toUpperCase()]; }); -- 2.25.1