Optional
When multiple paths match a dispatched input, the comparator is used to determine which match should be considered the "best" match.
bestMatchComparator
Whether to allow partial matches (where the path doesn't consume the entire input string).
When false, only paths that fully consume the input will be considered. When true, paths that leave remaining characters can still match.
false
true
false Copy
When multiple paths match a dispatched input, the comparator is used to determine which match should be considered the "best" match.