Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

don't die on byte order mark at the beginning of files

  • Loading branch information...
commit aa0ba96c00c06b712ee26477739d0404f5fa0128 1 parent 315230b
Thomas Mayfield authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/parse-js.js
View
2  lib/parse-js.js
@@ -249,7 +249,7 @@ var EX_EOF = {};
function tokenizer($TEXT, skip_comments) {
var S = {
- text : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n"),
+ text : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/^\uFEFF/, ''),
pos : 0,
tokpos : 0,
line : 0,
Please sign in to comment.
Something went wrong with that request. Please try again.