提交 8837e7ad 编写于 作者: U ULIVZ

fix: cannot get sidebar when sidebar config contains non-ASCII chars. (close: #628)

上级 75ac38a0
......@@ -4,7 +4,7 @@ export const endingSlashRE = /\/$/
export const outboundRE = /^(https?:|mailto:|tel:)/
export function normalize (path) {
return path
return decodeURI(path)
.replace(hashRE, '')
.replace(extRE, '')
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册