kenchris / urlpattern-polyfill

URLPattern polyfill
https://www.npmjs.com/package/urlpattern-polyfill
MIT License
267 stars 30 forks source link

Do not require pathname to start with '/'. #13

Closed wanderview closed 3 years ago

wanderview commented 3 years ago

It turns out not all URL pathnames must have a leading /. For example, "cannot be a base" URLs like data:foo do not have a leading /. Therefore we do not force URLPattern pathnames to default to / as an empty string pathname is legal.

wanderview commented 3 years ago

@kenchris I believe I have fixed the merge conflicts with this PR and it should be ready for review.