Skip to content

Correct path segment regex #44149

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

Merged
merged 1 commit into from
May 20, 2021
Merged

Correct path segment regex #44149

merged 1 commit into from
May 20, 2021

Conversation

amcasey
Copy link
Member

@amcasey amcasey commented May 18, 2021

The old version incorrectly matched anything with a leading or trailing slash. The empty segment should only be detected between two slashes. This made it much less likely that we'd take the fast path, especially on *nix.

The old version incorrectly matched anything with a leading or trailing
slash.  The empty segment should only be detected between two slashes.
@amcasey amcasey requested a review from rbuckton May 18, 2021 17:20
@typescript-bot typescript-bot added Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug labels May 18, 2021
@amcasey amcasey requested a review from DanielRosenwasser May 19, 2021 16:53
@amcasey amcasey merged commit 87d0b3e into microsoft:master May 20, 2021
@amcasey amcasey deleted the PathRegex branch May 20, 2021 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Author: Team For Uncommitted Bug PR for untriaged, rejected, closed or missing bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants