fix: match extension only upto query params

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

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

Loading…
Cancel
Save