From cf4039625f6bdb50efd2a913f0c19e2f681cb9f8 Mon Sep 17 00:00:00 2001 From: Bass Jobsen Date: Thu, 29 Jan 2015 11:11:06 +0100 Subject: [PATCH] Update parser.js --- lib/less/parser/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/parser/parser.js b/lib/less/parser/parser.js index 46174120..608dd49b 100644 --- a/lib/less/parser/parser.js +++ b/lib/less/parser/parser.js @@ -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;