From 18a0c4442ea416b3e433dadfaa1ca64e35fd86d6 Mon Sep 17 00:00:00 2001 From: EnixCoda Date: Sat, 30 Oct 2021 23:04:18 +0800 Subject: [PATCH] fix: trim branch name on gitee --- src/platforms/Gitee/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/Gitee/index.ts b/src/platforms/Gitee/index.ts index 224125d..66e519c 100644 --- a/src/platforms/Gitee/index.ts +++ b/src/platforms/Gitee/index.ts @@ -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()