whatwg / urlpattern

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

Remove erroneous prefix check when generating string. (#145) #161

Closed wanderview closed 2 years ago

wanderview commented 2 years ago

This fixes another issue with generating canonical pattern strings as described in #145. In this case the prefix check incorrectly prevented us from protecting a named group from following character if there was an implicit prefix. For example, for a pathname /:foo\\bar we would incorrectly produce /:foobar instead of {/:foo}bar.


Preview | Diff

wanderview commented 2 years ago

@domenic PTAL.