olson-sean-k / wax

Opinionated and portable globs that can be matched against paths and directory trees.
https://glob.guide
MIT License
112 stars 10 forks source link

fix: prevent negated patterns from traversing directory boundaries #41

Closed arlyon closed 1 year ago

arlyon commented 1 year ago

Closes #40 by not pushing &&[^/] if we are already in a negation pattern, and just pushing the separator instead.

olson-sean-k commented 1 year ago

Thanks for the PR and sorry for the radio silence! If you're still willing to land this, please let me know and take a look at the review. I realize this change was requested some time ago and I completely understand if you can't or don't want to get this landed now.

arlyon commented 11 months ago

Hey! Apologies for just abandoning this, been very busy recently. I appreciate you taking the time to merge this :tada: