Use 'utf8', which Node uses, instead of 'utf-8'.

This commit is contained in:
John-David Dalton
2015-12-27 18:41:21 -06:00
parent 44ecbc944b
commit 7dd0bb5005

View File

@@ -22,6 +22,6 @@ var reLine = /.*/gm;
/*----------------------------------------------------------------------------*/
fs.writeFileSync(filePath, fs.readFileSync(filePath, 'utf-8').replace(pattern, function(match) {
fs.writeFileSync(filePath, fs.readFileSync(filePath, 'utf8').replace(pattern, function(match) {
return match.replace(reLine, '');
}));