Skip to content

Commit

Permalink
feat($core): use any custom protocol for outboundRE (#1731)
Browse files Browse the repository at this point in the history
  • Loading branch information
xr0master authored and ulivz committed Aug 18, 2019
1 parent 1385dd6 commit 120d885
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@vuepress/theme-default/util/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export const hashRE = /#.*$/
export const extRE = /\.(md|html)$/
export const endingSlashRE = /\/$/
export const outboundRE = /^(https?:|mailto:|tel:|[a-zA-Z]{4,}:)/
export const outboundRE = /^[a-z]+:/i

export function normalize (path) {
return decodeURI(path)
Expand Down

0 comments on commit 120d885

Please sign in to comment.