Skip to content

Correct path segment regex - #44149

Merged
Andrew Casey (amcasey) merged 1 commit into
microsoft:masterfrom
amcasey:PathRegex
May 20, 2021
Merged

Correct path segment regex#44149
Andrew Casey (amcasey) merged 1 commit into
microsoft:masterfrom
amcasey:PathRegex

Conversation

@amcasey

Copy link
Copy Markdown
Member

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.
Comment thread src/compiler/path.ts
@amcasey
Andrew Casey (amcasey) merged commit 87d0b3e into microsoft:master May 20, 2021
@amcasey
Andrew Casey (amcasey) deleted the PathRegex branch May 20, 2021 17:54
@microsoft Microsoft (microsoft) locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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