diff --git a/packages/@vuepress/theme-default/util/index.js b/packages/@vuepress/theme-default/util/index.js index d6375c023c..0b35ccdebe 100644 --- a/packages/@vuepress/theme-default/util/index.js +++ b/packages/@vuepress/theme-default/util/index.js @@ -1,7 +1,7 @@ export const hashRE = /#.*$/ export const extRE = /\.(md|html)$/ export const endingSlashRE = /\/$/ -export const outboundRE = /^(https?:|mailto:|tel:)/ +export const outboundRE = /^(https?:|mailto:|tel:|[a-zA-Z]{4,}:)/ export function normalize (path) { return decodeURI(path)