We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c0db5b + 056829c commit bb887d0Copy full SHA for bb887d0
src/utils/url.ts
@@ -2,7 +2,7 @@ const HASH_PATTERN = /^#.*/
2
const isHashLink = (href: string): boolean => HASH_PATTERN.test(href)
3
4
export const isExternal = (href: string): boolean =>
5
- href.includes("http") || href.includes("mailto:")
+ href.includes("http") || href.includes("mailto:") || href.includes("ipfs")
6
7
export const isHash = (href: string): boolean => isHashLink(href)
8
0 commit comments