niklasf / chessops

Chess and chess variant rules and operations in TypeScript
https://niklasf.github.io/chessops/
GNU General Public License v3.0
106 stars 34 forks source link

Support PGNs where a header is on the same line as a sequence of moves #89

Closed dignissimus closed 2 years ago

dignissimus commented 2 years ago

Resolves https://github.com/lichess-org/lila/issues/11350

niklasf commented 2 years ago

Thanks for your persistence. Getting pretty close, I think.

If move text and headers can be on the same line, I think we need to support multiple headers on the same line. Added a failing test case for that directly to your branch.

niklasf commented 2 years ago

Thanks again. Will do some more testing, and then make a release so we can get this on Lichess.