to-absolute-glob
to-absolute-glob copied to clipboard
fix: Check negative patterns before trimming
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.
cc @jonschlinkert @doowb
sorry I wasn't feeling well today. I'll take a look tomorrow morning
No problem. Hope you are feeling better!
If you want to fix the write permissions, I'm happy to wrap these up myself.
Blocking https://github.com/gulpjs/glob-stream/pull/118
cc @jonschlinkert @doowb ping
@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.
@jonschlinkert checking in here. Do you want to get these merged or should I create a new project?
For people looking, the fork is available at https://github.com/gulpjs/to-absolute-glob