remove last arrow function
authorLaurent Mazet <mazet@softndesign.org>
Sat, 4 Jul 2020 12:56:11 +0000 (14:56 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sat, 4 Jul 2020 12:56:11 +0000 (14:56 +0200)
public/trivabble.js

index 92c59c089093b275cba578d601f19b0e3fcd2f20..b6b0433d0779f34233554903b1e69cae68d2c352 100644 (file)
             }
             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);
                 }