-
-
Notifications
You must be signed in to change notification settings - Fork 531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix error when parsing UCI options #1113
Conversation
The regex that splits a UCI option into parts did not include word boundries, so words like "mini" would be split into "min" and "i", leading to parse errors. This commit puts word boundries into the regex to fix this. Fixes niklasf#1112
Looks good. Let's also add a test for this. |
Test added that passes with this PR and fails on master. |
Test uses fairy-stockfish since that engine revealed the original bug.
Not yet. I need to add fairy-stockfish to the test installation. |
We could also use MockTransport with output from fairy-stockfish. |
Do you want to keep both tests or should I delete the fairy-stockfish test to reduce the external dependencies? |
I can confirm that this fixes my test case. |
Let's keep it for now, since you already wrote the installation script and it looks like it should be pretty stable. Thank you, both! |
@niklasf Are you planning a 1.11.1 release with this fix or will we have to wait until 2.0? |
Fix error when parsing UCI options
I suppose 2.0.0 may be quite a while out, so published 1.11.1. |
The regex that splits a UCI option into parts did not include word boundries, so words like "mini" would be split into "min" and "i", leading to parse errors. This commit puts word boundries into the regex to fix this.
Fixes #1112