X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=server%2Fmodels%2FGame.js;h=5f9ab734cc7fa91fcc0e3400911496c18636f074;hb=b0116a67818668f55cd2a3b3a323b2c91b5bc332;hp=7f10b65a6ec8e5dbf0b9af0d95128d22f35eb763;hpb=b5ead37abca7898252c11a0d4a9e390a638fb838;p=vchess.git diff --git a/server/models/Game.js b/server/models/Game.js index 7f10b65a..5f9ab734 100644 --- a/server/models/Game.js +++ b/server/models/Game.js @@ -321,8 +321,7 @@ const GameModel = { ) && ( !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?*\/-]+$/)) ) && (