mirror of
https://github.com/lichess-org/lila.git
synced 2026-05-26 13:51:00 +00:00
Add back in length < 100 check for each word.
This commit is contained in:
committed by
Thibault Duplessis
parent
a000dbc1f9
commit
b05705f315
@@ -34,7 +34,8 @@ object String:
|
||||
.filter(_.nonEmpty)
|
||||
.map(word =>
|
||||
if Set("O-O", "O-O-O").contains(word.filter(c => c.isLetter || c == '-')) || (
|
||||
Set(8, 9).contains(word.split('/').filter(_.nonEmpty).length) &&
|
||||
word.length < 100 &&
|
||||
Set(8, 9).contains(word.split('/').filter(_.nonEmpty).length) &&
|
||||
Fen.makeBoard(Crazyhouse, word).isDefined
|
||||
)
|
||||
then word.toLowerCase
|
||||
|
||||
Reference in New Issue
Block a user