Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 24, 2022

Conversation

wanderview
Copy link
Member

@wanderview wanderview commented Jan 20, 2022

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

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`.
@wanderview
Copy link
Member Author

@domenic PTAL.

wanderview added a commit to wanderview/urlpattern-polyfill that referenced this pull request Jan 20, 2022
kenchris pushed a commit to kenchris/urlpattern-polyfill that referenced this pull request Jan 20, 2022
crowlKats added a commit to crowlKats/rust-urlpattern that referenced this pull request Jan 20, 2022
@wanderview wanderview merged commit 276ef33 into main Jan 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants