Skip to content

Added exclude option to filter file based on a RegExp pattern #61

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

Merged
merged 1 commit into from
Mar 9, 2017

Conversation

CurtisHumphrey
Copy link
Contributor

No description provided.

@gajus
Copy link
Owner

gajus commented Mar 8, 2017

Whats the reason for the blacklist approach as opposed to a whitelist approach?

I am not sure whether regex is the best option for this either. What about glob? Allow an array of glob patterns.

@CurtisHumphrey
Copy link
Contributor Author

CurtisHumphrey commented Mar 8, 2017

Well for the use case I was thinking about exclude node_modules the regex blacklist worked. We could add more options as another PR. BTW excluding of node_modules is pretty standard on most of my babel-plugins and webpack loaders, which is where I drew inspiration.

@gajus gajus merged commit 711086f into gajus:master Mar 9, 2017
@gajus
Copy link
Owner

gajus commented Mar 9, 2017

Thank you

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

Successfully merging this pull request may close these issues.

2 participants