Skip to content

Commit

Permalink
fix: chinese filenames can't build (#217) (#262)
Browse files Browse the repository at this point in the history
  • Loading branch information
heny committed May 27, 2021
1 parent 71a5e1c commit b940397
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/client/app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export function joinPath(base: string, path: string): string {
*/
export function pathToFile(path: string): string {
let pagePath = path.replace(/\.html$/, '')
pagePath = decodeURIComponent(pagePath)
if (pagePath.endsWith('/')) {
pagePath += 'index'
}
Expand Down

0 comments on commit b940397

Please sign in to comment.