) && (
!obj.rematchOffer || !!(obj.rematchOffer.match(/^[wbn]$/))
) && (
- // TODO: check if commas are still used (probably not)
- !obj.fen || !!(obj.fen.match(/^[a-zA-Z0-9,. /-]*$/))
+ !obj.fen || !!(obj.fen.match(/^[a-zA-Z0-9,.:{}\[\]" /-]*$/))
) && (
!obj.score || !!(obj.score.match(/^[012?*\/-]+$/))
) && (
}
// Set score if lost on time and >= 2 moves:
else if (
+ g.score == '*' &&
!!movesGroups[g.id] &&
movesGroups[g.id].nbMoves >= 2 &&
tsNow - movesGroups[g.id].lastMaj >