Skip to content

Commit b3401b2

Browse files
fix commit template message whitespace removing microsoft#71312
1 parent 1fc00b9 commit b3401b2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensions/git/src/git.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1704,7 +1704,7 @@ export class Repository {
17041704
}
17051705

17061706
const raw = await readfile(templatePath, 'utf8');
1707-
return raw.replace(/^\s*#.*$\n?/gm, '').trim();
1707+
return raw.replace(/\n?#.*/g, '');
17081708

17091709
} catch (err) {
17101710
return '';

0 commit comments

Comments
 (0)