diff --git a/src/shared/shared.ts b/src/shared/shared.ts index 64d78615..c6bbf68d 100644 --- a/src/shared/shared.ts +++ b/src/shared/shared.ts @@ -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'