Skip to content

Commit 120d885

Browse files
xr0masterulivz
authored andcommittedAug 18, 2019
feat($core): use any custom protocol for outboundRE (#1731)
1 parent 1385dd6 commit 120d885

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:|[a-zA-Z]{4,}:)/
4+
export const outboundRE = /^[a-z]+:/i
55

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

0 commit comments

Comments
 (0)
Please sign in to comment.