diff options
author | 2019-08-06 02:00:12 -0400 | |
---|---|---|
committer | 2019-08-06 13:00:12 +0700 | |
commit | f2a1b2aa16ed517ca45f69d1f30344b1bfda5fbe (patch) | |
tree | b98ed565e7afbb36b939f5c931cfce5f003f732d /source/libs/utils.ts | |
parent | 64c159a3412538c443ae60cb066aa7c42ced1de5 (diff) | |
download | refined-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.ts | 2 |
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('/'); |