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

fix: Check negative patterns before trimming #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

phated
Copy link
Member

@phated phated commented Nov 21, 2022

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.

@@ -31,7 +31,7 @@
},
"devDependencies": {
"gulp-format-md": "^2.0.0",
"mocha": "^10.1.0"
"mocha": "^3.0.2"
Copy link
Member Author

Choose a reason for hiding this comment

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

This has been reverted since we didn't drop old node support in the major.

@phated
Copy link
Member Author

phated commented Nov 21, 2022

cc @jonschlinkert @doowb

@jonschlinkert
Copy link
Member

sorry I wasn't feeling well today. I'll take a look tomorrow morning

@phated
Copy link
Member Author

phated commented Nov 23, 2022

No problem. Hope you are feeling better!

If you want to fix the write permissions, I'm happy to wrap these up myself.

@phated
Copy link
Member Author

phated commented Nov 23, 2022

Blocking gulpjs/glob-stream#118

@phated
Copy link
Member Author

phated commented Dec 6, 2022

cc @jonschlinkert @doowb ping

@phated
Copy link
Member Author

phated commented Dec 9, 2022

@jonschlinkert @doowb Hey guys, would it be better if I just fork this and release the stuff that I need? Sorry for being a pain but it is blocking my other work.

@phated
Copy link
Member Author

phated commented Dec 31, 2022

@jonschlinkert checking in here. Do you want to get these merged or should I create a new project?

@phated
Copy link
Member Author

phated commented Jan 3, 2023

For people looking, the fork is available at https://github.com/gulpjs/to-absolute-glob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants