diff options
author | Alexis Hovorka <[email protected]> | 2022-02-19 23:39:39 -0700 |
---|---|---|
committer | Alexis Hovorka <[email protected]> | 2022-02-19 23:39:39 -0700 |
commit | 15605b9918047498c32362eeaf6ba62ccf2dc095 (patch) | |
tree | 1cb83c04f6ddf3b344fff75c414e36509a9433a0 /app.js | |
parent | 7e41581a34fe4a479dbd32fc44dcbb16f5540493 (diff) |
[feat] First playable
Diffstat (limited to 'app.js')
-rw-r--r-- | app.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ app.get("/guess/(?<word>[a-z]*)", cors((req, res, match) => { match.word.split("").map(c => findAll(c, today())) .map((c,i,a) => c.length === 0? " " : c.includes(i)? "=" : c) .map((c,i,a) => Array.isArray(c)? c.filter(e => a[e] !== "=") : c) - .reduce((a,c) => Array.isArray(c)? a+(c.find(e => !a.includes(e))||" ") : a+c, "") + .reduce((a,c) => Array.isArray(c)? a+(c.find(e => !a.includes(e))??" ") : a+c, "") .replace(/[0-9]/g, "-"); sj(res, {word: match.word, result}); |