From e418ca7a1291d6968688530508ed572f8c605961 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sat, 4 Jul 2020 14:56:11 +0200 Subject: [PATCH] remove last arrow function --- public/trivabble.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/trivabble.js b/public/trivabble.js index 92c59c0..b6b0433 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -1629,7 +1629,7 @@ } modifyTileClass(newWords[k], "tile-spelling-ok", true); const pattern = "^" + newWords[k].letters.replace(/ /g, ".") + "$"; - if (!dictionary.find(element => element.match(pattern))) { + if (!dictionary.find(function (word) {return word.match(pattern);})) { if (badWords.indexOf(currentWord) === -1) { badWords.push(currentWord); } -- 2.30.2