projects
/
vchess.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f10a644
)
Fix moves transmission for Synchrone1/2
author
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 4 Mar 2021 12:31:52 +0000
(13:31 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Thu, 4 Mar 2021 12:31:52 +0000
(13:31 +0100)
server/models/Game.js
patch
|
blob
|
blame
|
history
diff --git
a/server/models/Game.js
b/server/models/Game.js
index
7f10b65
..
5f9ab73
100644
(file)
--- 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?*\/-]+$/))
) && (