Skip to content
This repository has been archived by the owner on Jun 18, 2022. It is now read-only.

Add check for prime moves without a space in between #18

Open
GuidoDipietro opened this issue Oct 30, 2020 · 0 comments
Open

Add check for prime moves without a space in between #18

GuidoDipietro opened this issue Oct 30, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@GuidoDipietro
Copy link
Collaborator

Let X'Y be a valid sequence, therefore the sequence is equivalent to X' Y, for any X: [FBUDRL](w)? and for any Y: move.

Easy fix: replace all ' with '\s except when the next character is a space or it's the last char in the string.

Also maybe change that part of the validation too completely (the RegEx check for spaces that updates as you type turned out to be a little bit annoying)

IMO all those replacements should happen after the user sends the solve and before it gets saved to Mongo.

I'll try to do it and if I can't I'll just buy a Cristóbal I guess.

@GuidoDipietro GuidoDipietro added the enhancement New feature or request label Oct 30, 2020
@GuidoDipietro GuidoDipietro self-assigned this Oct 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant