fix: double-slash format url should be external link (#3165)

pull/3173/head
烽宁 11 months ago committed by GitHub
parent 0761062790
commit 7dbeac6df0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -14,7 +14,7 @@ export type {
SiteData SiteData
} from '../../types/shared' } from '../../types/shared'
export const EXTERNAL_URL_RE = /^[a-z]+:/i export const EXTERNAL_URL_RE = /^(?:[a-z]+:|\/\/)/i
export const APPEARANCE_KEY = 'vitepress-theme-appearance' export const APPEARANCE_KEY = 'vitepress-theme-appearance'
export const HASH_RE = /#.*$/ export const HASH_RE = /#.*$/
export const EXT_RE = /(index)?\.(md|html)$/ export const EXT_RE = /(index)?\.(md|html)$/

Loading…
Cancel
Save