Don't match a string with more path segments than the path pattern.