From 99733e78ad910e7e923129a0a781b3fe2bc155fb Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Thu, 26 Dec 2019 00:07:43 +0800 Subject: [PATCH] fix: unescape and decode URI --- src/utils/URLHelper.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/URLHelper.ts b/src/utils/URLHelper.ts index 6d515bb..0f94215 100644 --- a/src/utils/URLHelper.ts +++ b/src/utils/URLHelper.ts @@ -10,7 +10,7 @@ export function parse(): MetaData & { path: string[] } { repoName, type, ...path // should be [...branchName.split('/'), ...filePath.split('/')] - ] = pathname.split('/') + ] = unescape(decodeURIComponent(pathname)).split('/') return { userName, repoName,