fix commit template message whitespace removing #71312

This commit is contained in:
Vitaliy Mazurenko
2019-04-04 12:00:13 +03:00
parent 1fc00b929e
commit b3401b2163

View File

@@ -1704,7 +1704,7 @@ export class Repository {
}
const raw = await readfile(templatePath, 'utf8');
return raw.replace(/^\s*#.*$\n?/gm, '').trim();
return raw.replace(/\n?#.*/g, '');
} catch (err) {
return '';