Skip to content
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

Check ints for the end of string before seperator #4

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

b0d0nne11
Copy link

If an integer matcher is the final element of a Trie it interprets the null at the end of the string as a separator character and pushes it back onto the iterator. Then the iterator containing a single null character fails to match the rest of the Trie. The string matcher on the other hand checks for the end of the string first and then checks for a separator character. This PR makes the behavior of the integer matcher the same as the string matcher by checking for the end of string first.

@klizhentas
Copy link
Contributor

Hey Brendan, please cover this use-case by tests

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.

None yet

2 participants