PGN cleanup may break comments
niklasf opened this issue · 1 comments
niklasf commented
It looks like these global replacements are intended to gracefully deal with invalid PGNs enclosed in [pgn]...[/pgn]
, using non-ASCII dashes in O-O
and O-O-O
, and en passant captures like exd6 e.p.
. But they would also incorrectly modify comments.
lenguyenthanh commented
I was wondering about this part as well. With the current implementation we don't really need this step.
Removing this step also helps us show the error location correctly. Now we can only show the location of the error in the pre-processed string, not for the whole original string.
I can work on this issue.