RogerMarsh / chesstab

Database for chess games
Other
0 stars 0 forks source link

Token sequence 'NAG' 'Game Termination Marker' is not stored correctly on database. #8

Open RogerMarsh opened 3 months ago

RogerMarsh commented 3 months ago

Whitespace between movetext tokens is not stored on a database.

This breaks for sequences like '$1 1/2-1/2' because '$11/2-1/2' is seen by the PGN parser as '$11' and '/2-1/2'.

Solution is to ensure whitespace separates this pair of tokens when stored to database.

RogerMarsh commented 3 months ago

Solution reversed because pgn-read parser is modified to spot NAG followed by Game Termination Marker without whitespace separator.