adds globstar property, to track **
This commit is contained in:
parent
57042354fc
commit
1455978abc
4
index.js
4
index.js
@ -36,9 +36,11 @@ module.exports = function parseGlob(pattern) {
|
||||
glob = glob.substr(0, braces) + escape(glob.substr(braces));
|
||||
}
|
||||
|
||||
if (!/(\/|\*\*)/.test(glob)) {
|
||||
tok.globstar = glob.indexOf('**') !== -1;
|
||||
if (!/\//.test(glob) && !tok.globstar) {
|
||||
tok.dirname = '';
|
||||
tok.filename = pattern;
|
||||
tok.globstar = false;
|
||||
|
||||
var basename = /^([^.]*)/.exec(glob);
|
||||
if (basename) {
|
||||
|
||||
Reference in New Issue
Block a user