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

Improve glob module to support OS separator agnostic matching #114810

Merged
merged 2 commits into from Jan 25, 2021

Conversation

JacksonKearl
Copy link
Contributor

@JacksonKearl JacksonKearl commented Jan 23, 2021

In #114794 I found that while the pattern **a/file/** will match a/file on both windows and mac, the pattern a/file will match a/file on Mac but only a\file on windows. This seems counter to most all of the other glob matches, so to me looks like a bug.

We could go even further and allow a/file to match both a\file and a/file on both mac and windows, which again seems consistant with the other globs (see commented out test cases), not sure if that's desired. It'd likely result in a bit worse performance.

Copy link
Contributor

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

@JacksonKearl JacksonKearl merged commit 07c3e90 into master Jan 25, 2021
@JacksonKearl JacksonKearl deleted the jackson/pathing branch January 25, 2021 18:46
@github-actions github-actions bot locked and limited conversation to collaborators Mar 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants