提交 388f4ff3 编写于 作者: M Michel Kaporin

Fixes #27720.

上级 9dea8acd
......@@ -48,7 +48,7 @@ export class LinkDetector {
let resource: uri = null;
try {
resource = (match && !strings.startsWith(match[0], 'http'))
&& (match[2] || strings.startsWith(match[0], '/') ? uri.file(match[1]) : this.contextService.toResource(match[1]));
&& (match[2] || strings.startsWith(match[1], '/') ? uri.file(match[1]) : this.contextService.toResource(match[1]));
} catch (e) { }
if (!resource) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册