From: Benjamin Auder Date: Thu, 4 Mar 2021 12:31:52 +0000 (+0100) Subject: Fix moves transmission for Synchrone1/2 X-Git-Url: https://git.auder.net/variants/img/current/%7B%7B%20asset%28%27mixstore/common.css?a=commitdiff_plain;h=5c4ea2bb470c27f061f2527aaa61ed9920e17f54;p=vchess.git Fix moves transmission for Synchrone1/2 --- 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?*\/-]+$/)) ) && (