Skip to content

Commit 7dbeac6

Browse files
authoredNov 1, 2023
fix: double-slash format url should be external link (#3165)
1 parent 0761062 commit 7dbeac6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/shared/shared.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type {
1414
SiteData
1515
} from '../../types/shared'
1616

17-
export const EXTERNAL_URL_RE = /^[a-z]+:/i
17+
export const EXTERNAL_URL_RE = /^(?:[a-z]+:|\/\/)/i
1818
export const APPEARANCE_KEY = 'vitepress-theme-appearance'
1919
export const HASH_RE = /#.*$/
2020
export const EXT_RE = /(index)?\.(md|html)$/

0 commit comments

Comments
 (0)
Please sign in to comment.