mirror of
https://github.com/less/less.js.git
synced 2026-05-01 03:00:22 -04:00
Merge pull request #2420 from bassjobsen/patch-10
endlines and comments
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