Skip to content
New issue

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

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

Already on GitHub? # to your account

fix: Check negative patterns before trimming #1

Merged
merged 2 commits into from
Jan 3, 2023
Merged

Conversation

phated
Copy link
Member

@phated phated commented Jan 3, 2023

While trying to implement this in glob-stream, I encountered a problem where my negative patterns weren't matching. I traced it to the ./ not being removed in negative globs.

This moves the isNegated check above the trimming logic so the ! will be removed from the pattern before trimming is attempted.

@phated phated merged commit 1faa5dc into master Jan 3, 2023
@phated phated deleted the phated/trim-leading branch January 3, 2023 15:53
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant