fix: trim end of matched link (#209469)

This commit is contained in:
Raymond Zhao 2024-04-03 11:25:21 -07:00 committed by GitHub
parent 9efebbe2e4
commit fb7f833668
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -238,7 +238,7 @@ export function gitCreatePr(): ITerminalQuickFixInternalOptions {
},
commandExitResult: 'success',
getQuickFixes: (matchResult: ITerminalCommandMatchResult) => {
const link = matchResult?.outputMatch?.regexMatch?.groups?.link;
const link = matchResult?.outputMatch?.regexMatch?.groups?.link?.trimEnd();
if (!link) {
return;
}