fix: strip windows line returns from templates (#1151)

pull/1152/head v10.12.4
Rhys Arkins 2017-11-12 07:23:09 +01:00 committed by singapore
parent ce88c32f94
commit 9c086703c6
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ function template(name, subdir = 'default/') {
'utf8'
);
// Strip off any trailing line break
return hbsContents.replace(/\n$/, '');
return hbsContents.replace(/\r?\n$/, '');
}
module.exports = {