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

Minimatch patterns don't work when starting with "!" #440

Open
vojtajina opened this issue Mar 29, 2013 · 2 comments
Open

Minimatch patterns don't work when starting with "!" #440

vojtajina opened this issue Mar 29, 2013 · 2 comments

Comments

@vojtajina
Copy link
Contributor

Based on #382

var path = require('path');
var mm = require('minimatch');
var pattern = '!**/*.js';
var normalizedPattern = path.resolve(pattern);
var filePath = path.resolve('/some/path/to/file.coffee');
mm(filePath,pattern);
true
mm(filePath,normalizedPattern);
false
@tiriana
Copy link

tiriana commented Jan 12, 2015

+1

@dignifiedquire
Copy link
Member

Ref #1133

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

No branches or pull requests

4 participants