mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 09:08:48 +01:00
prioritize html links since they can wrap other link types
This commit is contained in:
@@ -142,8 +142,8 @@ export class LinkDetector {
|
||||
return [{ kind: 'text', value: text, captures: [] }];
|
||||
}
|
||||
|
||||
const regexes: RegExp[] = [WEB_LINK_REGEX, PATH_LINK_REGEX, HTML_LINK_REGEX];
|
||||
const kinds: LinkKind[] = ['web', 'path', 'html'];
|
||||
const regexes: RegExp[] = [HTML_LINK_REGEX, WEB_LINK_REGEX, PATH_LINK_REGEX];
|
||||
const kinds: LinkKind[] = ['html', 'web', 'path'];
|
||||
const result: LinkPart[] = [];
|
||||
|
||||
const splitOne = (text: string, regexIndex: number) => {
|
||||
|
||||
Reference in New Issue
Block a user