fix: [code-1991]: fix commit message (#2104)

ui/offscreen-diff-contents
Calvin Lee 2024-06-13 18:51:54 +00:00 committed by Harness
parent b005db9920
commit 6ebf2a9bbc
1 changed files with 1 additions and 2 deletions

View File

@ -293,7 +293,7 @@ function renderPullRequestLinkFromCommitMessage(
const match = message.match(/\(#\d+\)(\n|$)/)
if (match?.length) {
message = message.replace(match[0], '({URL})')
const pullRequestId = match[0].replace('(#', '').replace(')', '')
const pullRequestId = match[0].replace('(#', '').replace(')', '').replace('\n', '')
message = (
<StringSubstitute
str={message}
@ -311,6 +311,5 @@ function renderPullRequestLinkFromCommitMessage(
/>
)
}
return message
}