Skip to content

Commit 2db1f3b

Browse files
authored
Merge pull request microsoft#192913 from microsoft/aamunger/releaseErrorLinks
prioritize html links since they can wrap other link types
2 parents 95000f2 + 7121c4f commit 2db1f3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

extensions/notebook-renderers/src/linkify.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ export class LinkDetector {
142142
return [{ kind: 'text', value: text, captures: [] }];
143143
}
144144

145-
const regexes: RegExp[] = [WEB_LINK_REGEX, PATH_LINK_REGEX, HTML_LINK_REGEX];
146-
const kinds: LinkKind[] = ['web', 'path', 'html'];
145+
const regexes: RegExp[] = [HTML_LINK_REGEX, WEB_LINK_REGEX, PATH_LINK_REGEX];
146+
const kinds: LinkKind[] = ['html', 'web', 'path'];
147147
const result: LinkPart[] = [];
148148

149149
const splitOne = (text: string, regexIndex: number) => {

0 commit comments

Comments
 (0)