mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 13:46:13 +00:00
prioritize html links since they can wrap other link types
This commit is contained in:
parent
b257cce9e7
commit
ddc81ac330
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue