diff options
Diffstat (limited to 'source/libs/utils.ts')
-rw-r--r-- | source/libs/utils.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/libs/utils.ts b/source/libs/utils.ts index 93abe2ef..88c657af 100644 --- a/source/libs/utils.ts +++ b/source/libs/utils.ts @@ -206,7 +206,7 @@ export function getLatestVersionTag(tags: string[]): string { return latestVersion; } -export function parseRoute(pathname: string): string { +export function parseRoute(pathname: string): string[] { const [user, repository, route, ...next] = pathname.replace(/^\/|\/$/g, '').split('/'); const parts = next.join('/'); const currentBranch = getCurrentBranch(); |