continuation of #84201

pull/84610/head
Joao Moreno 2019-11-12 12:11:15 +01:00
parent 6f1d6c5c56
commit 4583277fbd
No known key found for this signature in database
GPG Key ID: 9494F5E6167A8E6B
1 changed files with 1 additions and 1 deletions

View File

@ -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();
}