Skip to content

Commit

Permalink
fix($theme-default): encodeURI for sidebar items which contain CJK ch…
Browse files Browse the repository at this point in the history
…aracters (close: #717)

Co-Authored-By: MeetInInc <[email protected]>
  • Loading branch information
2 people authored and ulivz committed Mar 2, 2019
1 parent 1850be7 commit 285b368
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
Expand Up @@ -192,7 +192,7 @@ export function resolveMatchingConfig (regularPath, config) {
}
}
for (const base in config) {
if (ensureEndingSlash(regularPath).indexOf(base) === 0) {
if (ensureEndingSlash(regularPath).indexOf(encodeURI(base)) === 0) {
return {
base,
config: config[base]
Expand Down

0 comments on commit 285b368

Please sign in to comment.