URLNavigator icon indicating copy to clipboard operation
URLNavigator copied to clipboard

URLMatcher.match incorrectly matches <path:_>

Open RolandasRazma opened this issue 7 years ago • 2 comments

URLMatcher.match incorrectly matches empty url's. If you pass "" to match it will return wildcard paths

for example:

"" will match "/anything/<path:_>"
"/anything" will match "/anything/<path:_>" and is incorrect as patch is /anything/* not /anything*

normalizeURL normalizes "/" to "" - not sure if thats intended behaviour

RolandasRazma avatar Oct 05 '18 09:10 RolandasRazma

created failing tests pr

RolandasRazma avatar Dec 24 '18 10:12 RolandasRazma

also added fix.

this is not complete fix. it DOES make all test pass but it doesn't fix underlaying problem

RolandasRazma avatar Dec 24 '18 11:12 RolandasRazma