summaryrefslogtreecommitdiff
path: root/source/libs/utils.ts
diff options
context:
space:
mode:
authorGravatar Federico Brigante <opensource@bfred.it> 2020-05-19 01:25:42 +0200
committerGravatar Federico Brigante <opensource@bfred.it> 2020-05-19 01:25:42 +0200
commit1d87c3d0bd6c8af5286141cf6cff8371ecaeab0f (patch)
treec3ac72c7116f68ea5a474e78ee92843c0d092e2a /source/libs/utils.ts
parentbb83d265654278fa56bb98df7c68c2139eb30018 (diff)
downloadrefined-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.ts2
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();