diff options
author | Mihai Bazon <mihai.bazon@gmail.com> | 2015-05-05 10:11:38 +0300 |
---|---|---|
committer | Mihai Bazon <mihai.bazon@gmail.com> | 2015-05-05 10:11:38 +0300 |
commit | e637bdaf4e95ce65c1021f7dda7d198054e99e83 (patch) | |
tree | f121afbb8054f320c976a0b4e192819275f467b9 | |
parent | d558abbdb76a69d99d3ebde6c8903e47639b3f68 (diff) | |
download | tracifyjs-e637bdaf4e95ce65c1021f7dda7d198054e99e83.tar.gz tracifyjs-e637bdaf4e95ce65c1021f7dda7d198054e99e83.zip |
Only drop the BOM when it's the first character.
Close #704
-rw-r--r-- | lib/parse.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse.js b/lib/parse.js index 53aaabd6..3cc2da51 100644 --- a/lib/parse.js +++ b/lib/parse.js @@ -213,7 +213,7 @@ var EX_EOF = {}; function tokenizer($TEXT, filename, html5_comments) { var S = { - text : $TEXT.replace(/\uFEFF/g, ''), + text : $TEXT.replace(/^\uFEFF/g, ''), filename : filename, pos : 0, tokpos : 0, |