mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-26 11:38:51 +01:00
tweak regex #62800
This commit is contained in:
@@ -35,7 +35,7 @@ class FsLinkProvider implements vscode.DocumentLinkProvider {
|
||||
return undefined;
|
||||
}
|
||||
if (!this._regex) {
|
||||
this._regex = new RegExp(`(${(values(this._schemes).join('|'))}):[^\\s]+`, 'gi');
|
||||
this._regex = new RegExp(`(${(values(this._schemes).join('|'))}):[^\\s"']+`, 'gi');
|
||||
}
|
||||
let result: vscode.DocumentLink[] = [];
|
||||
let max = Math.min(document.lineCount, 2500);
|
||||
|
||||
Reference in New Issue
Block a user