This commit is contained in:
Joao Moreno
2019-09-06 09:39:56 +02:00
parent 4fa0b6543f
commit fe44d14e71

View File

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