fix include matching
This commit is contained in:
parent
4a055ade91
commit
8d795d10b0
@ -108,7 +108,19 @@ exports[`dual 2`] = `
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`exclude 1`] = `undefined`;
|
||||
exports[`exclude 1`] = `
|
||||
{
|
||||
"npm": {
|
||||
"dependencies": {
|
||||
"updates": {
|
||||
"info": "https://github.com/silverwind/updates",
|
||||
"new": "537ccb7",
|
||||
"old": "6941e05",
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
`;
|
||||
|
||||
exports[`exclude 2`] = `
|
||||
{
|
||||
|
@ -673,7 +673,7 @@ function canInclude(name, mode, {include, exclude}) {
|
||||
for (const re of include) {
|
||||
if (re.test(name)) return true;
|
||||
}
|
||||
return false;
|
||||
return include.size ? false : true;
|
||||
}
|
||||
|
||||
function resolveFiles(filesArg) {
|
||||
|
Loading…
Reference in New Issue
Block a user