From: Laurent Mazet Date: Sat, 4 Jul 2020 12:56:11 +0000 (+0200) Subject: remove last arrow function X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=e418ca7a1291d6968688530508ed572f8c605961;p=trivabble.git remove last arrow function --- 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); }