mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: unescape and decode URI
This commit is contained in:
parent
193fb1f313
commit
99733e78ad
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Reference in a new issue