fixes is.dotfile check
This commit is contained in:
parent
6817278154
commit
a0e82593ac
@ -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);
|
||||
}
|
||||
|
||||
2
index.js
2
index.js
@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user