urlpattern icon indicating copy to clipboard operation
urlpattern copied to clipboard

Does not tolerate `+` in protocol

Open rotu opened this issue 6 months ago • 8 comments

What is the issue with the URL Pattern Standard?

URLPattern doesn't tolerate + in protocol. The polyfill gives this error:

new URLPattern("web+foo://example.com/baz")

TypeError: Failed to construct 'URLPattern': Unexpected OTHER_MODIFIER at 3, expected END

This is especially a problem since the web+ prefix is mandatory when registering schemes.

rotu avatar Aug 02 '24 20:08 rotu