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

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

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