mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-17 02:51:36 -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
|
// mailto uris do not need additional encoding of &, otherwise it would not render properly
|
||||||
if (uri.scheme !== 'mailto') {
|
if (uri.scheme !== 'mailto') {
|
||||||
href = href.replace(/&(?!amp;)/g, '&');
|
href = href.replace(/&(?!amp;)/g, '&');
|
||||||
} else {
|
}
|
||||||
href = href.replace(/</g, '<')
|
href = href.replace(/</g, '<')
|
||||||
.replace(/>/g, '>')
|
.replace(/>/g, '>')
|
||||||
.replace(/"/g, '"')
|
.replace(/"/g, '"')
|
||||||
.replace(/'/g, ''');
|
.replace(/'/g, ''');
|
||||||
}
|
|
||||||
return `<a href=${href} data-href="${href}" title="${title || href}">${text}</a>`;
|
return `<a href=${href} data-href="${href}" title="${title || href}">${text}</a>`;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user