提交 8f5ca20e 编写于 作者: R Rob Lourens

Don't regress ./ in "files to include" box

上级 436ecb0b
...@@ -115,7 +115,7 @@ export class PatternInputWidget extends Widget { ...@@ -115,7 +115,7 @@ export class PatternInputWidget extends Widget {
let searchPaths: string[]; let searchPaths: string[];
if (isGlobPattern) { if (isGlobPattern) {
const segments = splitGlobAware(pattern, ',') const segments = splitGlobAware(pattern, ',')
.map(s => s.trim()) .map(s => strings.ltrim(s.trim(), './'))
.filter(s => !!s.length); .filter(s => !!s.length);
const groups = this.groupByPathsAndExprSegments(segments); const groups = this.groupByPathsAndExprSegments(segments);
...@@ -123,7 +123,7 @@ export class PatternInputWidget extends Widget { ...@@ -123,7 +123,7 @@ export class PatternInputWidget extends Widget {
exprSegments = groups.exprSegments; exprSegments = groups.exprSegments;
} else { } else {
const segments = pattern.split(',') const segments = pattern.split(',')
.map(s => s.trim()) .map(s => strings.ltrim(s.trim(), './'))
.filter(s => !!s.length); .filter(s => !!s.length);
const groups = this.groupByPathsAndExprSegments(segments); const groups = this.groupByPathsAndExprSegments(segments);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册