This commit is contained in:
Luke Page
2015-01-30 22:29:03 +00:00

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;