diff --git a/view/js/script.js b/view/js/script.js index 7ccad46050..68d7aab5e2 100644 --- a/view/js/script.js +++ b/view/js/script.js @@ -74,7 +74,7 @@ function escapeRegExp(string) { return string.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'); // $& means the whole matched string } function replaceAll(str, match, replacement){ - return str.replace(new RegExp(escapeRegExp(match), 'g'), ()=>replacement); + return str.replace(new RegExp(escapeRegExp(match), 'g'), replacement); } if(typeof String.prototype.replaceAll === "undefined") { String.prototype.replaceAll = replaceAll