mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-27 12:04:04 +01:00
fix commit template message whitespace removing #71312
This commit is contained in:
@@ -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 '';
|
||||
|
||||
Reference in New Issue
Block a user