Skip to content

Commit 6696368

Browse files
committed
Remove UTF8 BOM - fixes #650
1 parent e94b5b6 commit 6696368

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/less/parser.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,9 @@ less.Parser = function Parser(env) {
269269
i = j = current = furthest = 0;
270270
input = str.replace(/\r\n/g, '\n');
271271

272+
// Remove potential UTF Byte Order Mark
273+
input = input.replace(/^\uFEFF/, '');
274+
272275
// Split the input into chunks.
273276
chunks = (function (chunks) {
274277
var j = 0,

0 commit comments

Comments
 (0)