route icon indicating copy to clipboard operation
route copied to clipboard

Check ints for the end of string before seperator

Open b0d0nne11 opened this issue 9 years ago • 1 comments

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.

b0d0nne11 avatar Mar 18 '15 19:03 b0d0nne11

Hey Brendan, please cover this use-case by tests

klizhentas avatar Mar 18 '15 19:03 klizhentas