mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-19 08:08:39 +01:00
Exclude empty links from md results (#153161)
These are technically valid links but we don't care about them since they take up no space
This commit is contained in:
@@ -219,7 +219,7 @@ const linkPattern = new RegExp(
|
||||
r`\(\s*)` + // <-- close prefix match
|
||||
/**/r`(` +
|
||||
/*****/r`[^\s\(\)\<](?:[^\s\(\)]|\([^\s\(\)]*?\))*|` + // Link without whitespace, or...
|
||||
/*****/r`<[^<>]*>` + // In angle brackets
|
||||
/*****/r`<[^<>]+>` + // In angle brackets
|
||||
/**/r`)` +
|
||||
|
||||
// Title
|
||||
|
||||
Reference in New Issue
Block a user