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

Allow ignoring directories using non-negated string matchers #29

Merged
merged 1 commit into from
Oct 28, 2015

Conversation

Ajedi32
Copy link
Contributor

@Ajedi32 Ajedi32 commented Oct 19, 2015

This fixes a problem created as a side effect of #20, while still solving the original issue, #16. It works by allowing string-based matchers to ignore directories, except when those matchers are negated (preceded by a !), in which case they only apply to files.

Let me know if this is something you want or not. After you decide whether to accept or reject this PR, I'd appreciate it if you'd cut a release so that we can use some of the recently added features from this library in Metalsmith.

If you decide to reject this PR though, the release would definitely have to be v2.0 as per SemVer, since you'd be removing the ability to ignore entire directories with string matchers. Even with this PR there have technically been breaking changes in recursive-readdir's behavior, but you could probably get away with calling them a minor fix in that case, since recursive-readdir's previous handling of negated matchers wasn't particularly useful anyway.

@jergason
Copy link
Owner

Looks magnifico

jergason added a commit that referenced this pull request Oct 28, 2015
Allow ignoring directories using non-negated string matchers
@jergason jergason merged commit eebc91c into jergason:master Oct 28, 2015
@jergason
Copy link
Owner

@Ajedi32 I just release 1.3.0. Thank you for all of your help!

@Ajedi32
Copy link
Contributor Author

Ajedi32 commented Oct 28, 2015

Awesome, thanks! 👍

@Ajedi32 Ajedi32 deleted the match_directories branch March 1, 2016 15:28
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