diff --git a/browser.js b/browser.js index c7de01e..b9b3803 100644 --- a/browser.js +++ b/browser.js @@ -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); } diff --git a/index.js b/index.js index ea0060d..4ab691a 100644 --- a/index.js +++ b/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); }