Soft'N'Design Software
/
projects
/
trivabble.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa2d177
)
remove last arrow function
author
Laurent Mazet
<mazet@softndesign.org>
Sat, 4 Jul 2020 12:56:11 +0000
(14:56 +0200)
committer
Laurent Mazet
<mazet@softndesign.org>
Sat, 4 Jul 2020 12:56:11 +0000
(14:56 +0200)
public/trivabble.js
patch
|
blob
|
blame
|
history
diff --git
a/public/trivabble.js
b/public/trivabble.js
index 92c59c089093b275cba578d601f19b0e3fcd2f20..b6b0433d0779f34233554903b1e69cae68d2c352 100644
(file)
--- 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);
}