Permalink
Browse files

added some flags to fnmatch call, updated .jshintignore

  • Loading branch information...
1 parent e65b2f9 commit 893419205e34963a9aa0de26130dde01b796c344 @brentlintner brentlintner committed Jul 15, 2011
Showing with 4 additions and 4 deletions.
  1. +3 −3 .jshintignore
  2. +1 −1 lib/hint.js
View
@@ -1,3 +1,3 @@
-node_modules/*
-packages/*
-.git/*
+node_modules
+packages
+.git
View
@@ -34,7 +34,7 @@ function _lint(file, results, config, data) {
function _shouldIgnore(somePath, ignore) {
return ignore.some(function (ignorePath) {
- return glob.fnmatch(ignorePath, somePath, glob.FNM_PATHNAME);
+ return glob.fnmatch(ignorePath, somePath, ~(glob.FNM_PATHNAME & glob.FNM_CASEFOLD));
});
}

0 comments on commit 8934192

Please sign in to comment.