mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 19:27:11 +02:00
closes #6084
This commit is contained in:
@@ -505,7 +505,7 @@
|
||||
Translator.compile = function compile() {
|
||||
var args = Array.prototype.slice.call(arguments, 0).map(function (text) {
|
||||
// escape commas and percent signs in arguments
|
||||
return text.replace(/%/g, '%').replace(/,/g, ',');
|
||||
return String(text).replace(/%/g, '%').replace(/,/g, ',');
|
||||
});
|
||||
|
||||
return '[[' + args.join(', ') + ']]';
|
||||
|
||||
Reference in New Issue
Block a user