summaryrefslogtreecommitdiff
path: root/source/libs/utils.ts
diff options
context:
space:
mode:
authorGravatar yakov116 <16872793+yakov116@users.noreply.github.com> 2019-08-06 02:00:12 -0400
committerGravatar Federico Brigante <github@bfred.it> 2019-08-06 13:00:12 +0700
commitf2a1b2aa16ed517ca45f69d1f30344b1bfda5fbe (patch)
treeb98ed565e7afbb36b939f5c931cfce5f003f732d /source/libs/utils.ts
parent64c159a3412538c443ae60cb066aa7c42ced1de5 (diff)
downloadrefined-github-f2a1b2aa16ed517ca45f69d1f30344b1bfda5fbe.tar.gz
refined-github-f2a1b2aa16ed517ca45f69d1f30344b1bfda5fbe.tar.zst
refined-github-f2a1b2aa16ed517ca45f69d1f30344b1bfda5fbe.zip
Fix default branch detection in private repos (#2307)
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 68e23594..c3e2bc90 100644
--- a/source/libs/utils.ts
+++ b/source/libs/utils.ts
@@ -45,7 +45,7 @@ export const getCurrentBranch = (): string => {
.split('/')
.slice(6)
.join('/')
- .replace(/\.atom$/, '');
+ .replace(/\.atom.*/, '');
};
export const getRepoURL = (): string => location.pathname.slice(1).split('/', 2).join('/');