Skip to content

Commit

Permalink
Add "mailto:" as a valid protocol
Browse files Browse the repository at this point in the history
  • Loading branch information
csillag committed Feb 21, 2024
1 parent 74ebcb2 commit db8ae46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/utils/url.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const validProtocols = ['http:', 'https:', 'ftp:', 'ipfs:', 'data:']
const validProtocols = ['http:', 'https:', 'ftp:', 'ipfs:', 'data:', 'mailto:']

export const hasValidProtocol = (url: string | undefined): boolean => {
if (!url) {
Expand Down

0 comments on commit db8ae46

Please sign in to comment.