From 7fc281ca0a2fd4cda9317f9f5897c888945cf780 Mon Sep 17 00:00:00 2001 From: DanieL Date: Tue, 29 Nov 2022 18:13:31 -0300 Subject: [PATCH] Updates --- view/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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