Skip to content

Conversation

@johndoknjas
Copy link
Contributor

To repro the current bug, search something like "1.e4 e5 2.Nc3" vs "1. e4 e5 2. Nc3".

@ornicar
Copy link
Collaborator

ornicar commented May 14, 2025

I think it would be good to understand what's happening, rather than shoving a regex in the controller.

Even if a regex is the correct solution, it should be done by the opening module. Controllers should only deal with HTTP and defer the custom logic to the module.

@lenguyenthanh
Copy link
Member

I think it's because we split string by space to List[SanStr] then parse it and search for opening.

@ornicar
Copy link
Collaborator

ornicar commented May 14, 2025

makeQuery looks broken. It needs more tests and a bunch of fixes.

@ornicar ornicar force-pushed the opening-moves-spacing branch from 2d65de9 to afe9e14 Compare May 14, 2025 09:17
@ornicar ornicar merged commit 0aae65c into lichess-org:master May 15, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants