mirror of
https://github.com/less/less.js.git
synced 2026-01-22 05:37:56 -05:00
Update parser.js
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user