提交 011a67aa 编写于 作者: B Benjamin Pasero

Fix tests

上级 e4592ea8
......@@ -44,7 +44,7 @@ export class FileWalker {
this.walkedPaths = Object.create(null);
// Normalize file patterns to forward slashs
if (this.filePattern.indexOf(paths.sep) >= 0) {
if (this.filePattern && this.filePattern.indexOf(paths.sep) >= 0) {
this.filePattern = strings.replaceAll(this.filePattern, '\\', '/');
this.searchInPath = true;
}
......@@ -240,4 +240,4 @@ export class Engine implements ISearchEngine {
public cancel(): void {
this.walker.cancel();
}
}
\ No newline at end of file
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册