Skip to content

Commit

Permalink
runfix: wire deeplink completeness
Browse files Browse the repository at this point in the history
  • Loading branch information
atomrc committed Apr 20, 2023
1 parent c5b70be commit 879e889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/util/messageRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const originalNormalizeLink = markdownit.normalizeLink!;

const isValidUrl = (url: string): boolean => {
// only allow urls to wire://, https://, http:// and mailto:
return !!url.match(/^(wire:|https?:\/\/|mailto:)/i);
return !!url.match(/^(wire:\/\/|https?:\/\/|mailto:)/i);
};
markdownit.validateLink = isValidUrl;
markdownit.normalizeLink = (url: string): string => {
Expand Down

0 comments on commit 879e889

Please sign in to comment.