fix include matching

This commit is contained in:
silverwind 2023-09-06 01:13:02 +02:00
parent 4a055ade91
commit 8d795d10b0
Signed by: silverwind
GPG Key ID: 2E62B41C93869443
2 changed files with 14 additions and 2 deletions

@ -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) {