fix: allow using other protocols than http(s) in links

pull/503/head
Divyansh Singh 4 years ago committed by GitHub
parent d494f2194b
commit 708954644d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -9,7 +9,7 @@ export type {
DefaultTheme
} from '../../types/shared'
export const EXTERNAL_URL_RE = /^https?:|\.(?!html|md)\w+$/i
export const EXTERNAL_URL_RE = /:\/\/|\.(?!html|md)\w+$/i
// @ts-ignore
export const inBrowser = typeof window !== 'undefined'

Loading…
Cancel
Save