X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=server%2Fmodels%2FGame.js;h=401e36533c78565f3457884791666dac08ee07a7;hp=516c4bc52982b2c3a4237777772a23ee445160d2;hb=e78633dbd29be1920e0c02509b6ce62b87b61d77;hpb=12d38d0f53f4ab534e44467550b72705858810d4 diff --git a/server/models/Game.js b/server/models/Game.js index 516c4bc5..401e3653 100644 --- a/server/models/Game.js +++ b/server/models/Game.js @@ -309,7 +309,8 @@ const GameModel = ) && ( !obj.rematchOffer || !!(obj.rematchOffer.match(/^[wbn]$/)) ) && ( - !obj.fen || !!(obj.fen.match(/^[a-zA-Z0-9, /-]*$/)) + // TODO: check if commas are still used (probably not) + !obj.fen || !!(obj.fen.match(/^[a-zA-Z0-9,. /-]*$/)) ) && ( !obj.score || !!(obj.score.match(/^[012?*\/-]+$/)) ) && (