Skip to content

Commit bb887d0

Browse files
authored
Merge pull request #8401 from SebastianSupreme/patch-1
Include IPFS hashes as external link possibility
2 parents 1c0db5b + 056829c commit bb887d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/url.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ const HASH_PATTERN = /^#.*/
22
const isHashLink = (href: string): boolean => HASH_PATTERN.test(href)
33

44
export const isExternal = (href: string): boolean =>
5-
href.includes("http") || href.includes("mailto:")
5+
href.includes("http") || href.includes("mailto:") || href.includes("ipfs")
66

77
export const isHash = (href: string): boolean => isHashLink(href)
88

0 commit comments

Comments
 (0)