Fix moves transmission for Synchrone1/2
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 4 Mar 2021 12:31:52 +0000 (13:31 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 4 Mar 2021 12:31:52 +0000 (13:31 +0100)
server/models/Game.js

index 7f10b65..5f9ab73 100644 (file)
@@ -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?*\/-]+$/))
       ) && (