Skip to content

Commit

Permalink
fix: double-slash format url should be external link (#3165)
Browse files Browse the repository at this point in the history
  • Loading branch information
zonemeen committed Nov 1, 2023
1 parent 0761062 commit 7dbeac6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/shared/shared.ts
Expand Up @@ -14,7 +14,7 @@ export type {
SiteData
} 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 HASH_RE = /#.*$/
export const EXT_RE = /(index)?\.(md|html)$/
Expand Down

0 comments on commit 7dbeac6

Please sign in to comment.