Node.js based forum software built for the modern web
fix: don't escape [ & ] breaks nested translations
Barış Soner Uşaklı730e4dac5f80
diff --git a/public/src/utils.common.js b/public/src/utils.common.jsindex d078dff39e..dfb6f35c98 100644--- a/public/src/utils.common.js+++ b/public/src/utils.common.js@@ -10,13 +10,11 @@ const escapeCharMap = Object.freeze({"'": ''','`': '`','=': '=',- '[': '[',- ']': ']',});function replaceChar(c) {return escapeCharMap[c];}-const escapeChars = /[&<>"'`=[\]]/g;+const escapeChars = /[&<>"'`=]/g;const invisibleChars = /[\u200B-\u200F\u202A-\u202E\u2066-\u2069\u3164\uFEFF]/;