We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7629501 commit f0916e1Copy full SHA for f0916e1
client/src/language/documentLink.ts
@@ -6,7 +6,7 @@ export class DocumentLinkProvider implements DocumentLinkProvider {
6
async provideDocumentLinks(document: TextDocument, token: CancellationToken) {
7
const results: DocumentLink[] = [];
8
const text: string = document.getText();
9
- const linkPattern: RegExp = /(?<=['"]).*\.tpl(?=['"])/g;
+ const linkPattern: RegExp = /(?<=['"])[^\s'"]+\.tpl(?=['"])/g;
10
11
for (let match: RegExpExecArray; match = linkPattern.exec(text); match) {
12
0 commit comments