diff --git a/public/src/modules/translator.js b/public/src/modules/translator.js index 2e9dcafb9c..29aed1af9c 100644 --- a/public/src/modules/translator.js +++ b/public/src/modules/translator.js @@ -415,7 +415,7 @@ * @returns {string} */ Translator.escape = function escape(text) { - return typeof text === 'string' ? text.replace(/\[/g, '[').replace(/\]/g, ']') : text; + return typeof text === 'string' ? text.replace(/\[\[/g, '[[').replace(/\]\]/g, ']]') : text; }; /**