route
route copied to clipboard
Check ints for the end of string before seperator
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.
Hey Brendan, please cover this use-case by tests