summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--data/js/lib.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/js/lib.js b/data/js/lib.js
index 72925a93..b01a93c8 100644
--- a/data/js/lib.js
+++ b/data/js/lib.js
@@ -175,7 +175,7 @@ window.mt = function() {
var val = VARS.l10n_str[key] || key;
// BUG: ~[_1] will get replaced. We don't have a string like that, so whatever.
for(var i=1; i<arguments.length; i++)
- val = val.replace(new RegExp('\[_'+i+'\]', 'g'), arguments[i]);
+ val = val.replace(new RegExp('\\[_'+i+'\\]', 'g'), arguments[i]);
return val.replace(/~\[/g, '[').replace(/~\]/g, ']');
};