diff options
author | 2020-05-19 01:25:42 +0200 | |
---|---|---|
committer | 2020-05-19 01:25:42 +0200 | |
commit | 1d87c3d0bd6c8af5286141cf6cff8371ecaeab0f (patch) | |
tree | c3ac72c7116f68ea5a474e78ee92843c0d092e2a /source/libs/utils.ts | |
parent | bb83d265654278fa56bb98df7c68c2139eb30018 (diff) | |
download | refined-github-1d87c3d0bd6c8af5286141cf6cff8371ecaeab0f.tar.gz refined-github-1d87c3d0bd6c8af5286141cf6cff8371ecaeab0f.tar.zst refined-github-1d87c3d0bd6c8af5286141cf6cff8371ecaeab0f.zip |
Lint
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(); |