From 120d88589a88a52fa67e788b838350096ae5c843 Mon Sep 17 00:00:00 2001 From: xr0master Date: Sun, 18 Aug 2019 09:54:15 +0300 Subject: [PATCH] feat($core): use any custom protocol for outboundRE (#1731) --- packages/@vuepress/theme-default/util/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@vuepress/theme-default/util/index.js b/packages/@vuepress/theme-default/util/index.js index 0b35ccdebe..fbf641635b 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:|[a-zA-Z]{4,}:)/ +export const outboundRE = /^[a-z]+:/i export function normalize (path) { return decodeURI(path)