Update parser.js

This commit is contained in:
Bass Jobsen
2015-01-29 11:11:06 +01:00
parent d3781258b7
commit cf4039625f

View File

@@ -102,7 +102,7 @@ var Parser = function Parser(context, imports, fileInfo) {
imports.contentsIgnoredChars[fileInfo.filename] = preText.length;
}
str = str.replace(/\r\n/g, '\n');
str = str.replace(/\r\n?/g, '\n');
// Remove potential UTF Byte Order Mark
str = preText + str.replace(/^\uFEFF/, '') + modifyVars;
imports.contents[fileInfo.filename] = str;