未验证 提交 480c5381 编写于 作者: P pi1024e 提交者: GitHub

Update glob.ts

上级 626f9093
......@@ -331,10 +331,10 @@ function wrapRelativePattern(parsedPattern: ParsedStringPattern, arg2: string |
}
return function (path, basename) {
if (extpath.isEqualOrParent(path, arg2.base)) {
return parsedPattern(paths.relative(arg2.base, path), basename);
if (!extpath.isEqualOrParent(path, arg2.base)) {
return null;
}
return null;
return parsedPattern(paths.relative(arg2.base, path), basename);
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册