Skip to content

Commit 27f005b

Browse files
DBULL7ulivz
authored andcommitted
feat($theme-default): support custom URL scheme for external links (#1677)
1 parent c82af0d commit 27f005b

File tree

1 file changed

+1
-1
lines changed
  • packages/@vuepress/theme-default/util

1 file changed

+1
-1
lines changed

packages/@vuepress/theme-default/util/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
export const hashRE = /#.*$/
22
export const extRE = /\.(md|html)$/
33
export const endingSlashRE = /\/$/
4-
export const outboundRE = /^(https?:|mailto:|tel:)/
4+
export const outboundRE = /^(https?:|mailto:|tel:|[a-zA-Z]{4,}:)/
55

66
export function normalize (path) {
77
return decodeURI(path)

0 commit comments

Comments
 (0)