mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-09 17:52:34 -05:00
fix email else condition (#16491)
This commit is contained in:
@@ -138,12 +138,11 @@ export class NotebookMarkdownRenderer {
|
||||
// mailto uris do not need additional encoding of &, otherwise it would not render properly
|
||||
if (uri.scheme !== 'mailto') {
|
||||
href = href.replace(/&(?!amp;)/g, '&');
|
||||
} else {
|
||||
href = href.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''');
|
||||
}
|
||||
href = href.replace(/</g, '<')
|
||||
.replace(/>/g, '>')
|
||||
.replace(/"/g, '"')
|
||||
.replace(/'/g, ''');
|
||||
return `<a href=${href} data-href="${href}" title="${title || href}">${text}</a>`;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user