X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2Fmodels%2FGame.js;h=5f9ab734cc7fa91fcc0e3400911496c18636f074;hp=7f10b65a6ec8e5dbf0b9af0d95128d22f35eb763;hb=5c4ea2bb470c27f061f2527aaa61ed9920e17f54;hpb=f10a644e185d7c467d280d4a0deb2905df038dd3 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?*\/-]+$/)) ) && (