提交 6a354503 编写于 作者: M Michel Kaporin

Fixes #26934.

上级 e1bb941c
......@@ -47,7 +47,8 @@ export class LinkDetector {
while (match !== null) {
let resource: uri = null;
try {
resource = (match && !strings.startsWith(match[0], 'http')) && (match[2] ? uri.file(match[1]) : this.contextService.toResource(match[1]));
resource = (match && !strings.startsWith(match[0], 'http'))
&& (match[2] || strings.startsWith(match[0], '/') ? 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.
先完成此消息的编辑!
想要评论请 注册