mirror of
https://github.com/EnixCoda/Gitako.git
synced 2026-03-11 08:54:44 +00:00
fix: trim branch name on gitee
This commit is contained in:
parent
84c546390e
commit
18a0c4442e
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ export const Gitee: Platform = {
|
|||
if (DOMHelper.isInCodePage()) {
|
||||
// not working well with non-branch blob
|
||||
// cannot handle '/' split branch name, should not use when possibly on branch page
|
||||
branchName = DOMHelper.getCurrentBranch() || URLHelper.parseSHA()
|
||||
branchName = (DOMHelper.getCurrentBranch() || URLHelper.parseSHA())?.trim()
|
||||
}
|
||||
|
||||
const { userName, repoName, type } = URLHelper.parse()
|
||||
|
|
|
|||
Loading…
Reference in a new issue