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