fix: trim branch name on gitee

This commit is contained in:
EnixCoda 2021-10-30 23:04:18 +08:00
parent 84c546390e
commit 18a0c4442e

View file

@ -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()