Skip to content

Commit

Permalink
feat($theme-default): support custom URL scheme for external links (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
DBULL7 authored and ulivz committed Jul 1, 2019
1 parent c82af0d commit 27f005b
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:)/
export const outboundRE = /^(https?:|mailto:|tel:|[a-zA-Z]{4,}:)/

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

0 comments on commit 27f005b

Please sign in to comment.