whatwg / urlpattern

URL Pattern Standard
https://urlpattern.spec.whatwg.org/
Other
157 stars 22 forks source link

Make the match algorithm accept the URL struct #221

Closed yoshisatoyanagisawa closed 8 months ago

yoshisatoyanagisawa commented 8 months ago

In https://github.com/w3c/ServiceWorker/pull/1701, the ServiceWorker static routing API uses the match algorithm to match the request URL. However, the original match algorithm accepts a URLPatternInput object, and it does not accept a URL struct. To allow the ServiceWorker static routing API to use the match algorithm, we need to make the match algorithm to accept the URL struct.

Fixes: https://github.com/whatwg/urlpattern/issues/218.

(See WHATWG Working Mode: Changes for more details.)


Preview | Diff

yoshisatoyanagisawa commented 8 months ago

Thanks for the review, both. @jeremyroman Will you take a look?

yoshisatoyanagisawa commented 8 months ago

Thanks for the review. Will somebody merge this?