fix: assume links containing extension other than html or md as external

pull/503/head
Divyansh Singh 4 years ago committed by GitHub
parent 45b65ce8b6
commit d494f2194b
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?:/i
export const EXTERNAL_URL_RE = /^https?:|\.(?!html|md)\w+$/i
// @ts-ignore
export const inBrowser = typeof window !== 'undefined'

Loading…
Cancel
Save