From 5c4ea2bb470c27f061f2527aaa61ed9920e17f54 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Thu, 4 Mar 2021 13:31:52 +0100
Subject: [PATCH] Fix moves transmission for Synchrone1/2

---
 server/models/Game.js | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

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?*\/-]+$/))
       ) && (
-- 
2.44.0