continuation of #84201

This commit is contained in:
Joao Moreno committed 2019-11-12 12:11:15 +01:00
1 parent 6f1d6c5c56
commit 4583277fbd
1 file changed
+1 -1
+1 -1
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();
}