fixes is.dotfile check

This commit is contained in:
jonschlinkert 2015-04-25 04:39:53 -04:00
parent 6817278154
commit a0e82593ac
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ module.exports = function parseGlob(glob) {
tok.is.braces = has(is, glob, '{');
tok.is.brackets = has(is, glob, '[:');
tok.is.globstar = has(is, glob, '**');
tok.is.dotfile = dotfile(tok.path.basename);
tok.is.dotfile = dotfile(tok.path.basename) || dotfile(tok.path.filename);
tok.is.dotdir = dotdir(tok.path.dirname);
return (cache[glob] = tok);
}

View File

@ -95,7 +95,7 @@ module.exports = function parseGlob(glob) {
tok.is.braces = has(is, glob, '{');
tok.is.brackets = has(is, glob, '[:');
tok.is.globstar = has(is, glob, '**');
tok.is.dotfile = dotfile(tok.path.basename);
tok.is.dotfile = dotfile(tok.path.basename) || dotfile(tok.path.filename);
tok.is.dotdir = dotdir(tok.path.dirname);
return (cache[glob] = tok);
}