diff --git a/extensions/git/src/git.ts b/extensions/git/src/git.ts index 7066ae2a9ff..a710a539c29 100644 --- a/extensions/git/src/git.ts +++ b/extensions/git/src/git.ts @@ -1822,7 +1822,7 @@ export class Repository { // TODO: Support core.commentChar return message.replace(/^(\s*#)(.*)$(\n?)/gm, (_, prefix, content, suffix) => { // https://github.com/microsoft/vscode/issues/84201#issuecomment-552834814 - return /^\d+(\s|$)/.test(content) ? `${prefix}${content}${suffix}` : ''; + return /^\d/.test(content) ? `${prefix}${content}${suffix}` : ''; }).trim(); }