Merge pull request #5614 from NodeBB/fix-signatures

Fix images not displaying in signatures
This commit is contained in:
Julian Lam
2017-04-21 09:00:43 -04:00
committed by GitHub

View File

@@ -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;
};
/**