public
/
UglifyJS.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d558abb
)
Only drop the BOM when it's the first character.
author
Mihai Bazon
<mihai.bazon@gmail.com>
Tue, 5 May 2015 07:11:38 +0000
(10:11 +0300)
committer
Mihai Bazon
<mihai.bazon@gmail.com>
Tue, 5 May 2015 07:11:38 +0000
(10:11 +0300)
Close #704
lib/parse.js
patch
|
blob
|
history
diff --git
a/lib/parse.js
b/lib/parse.js
index
53aaabd
..
3cc2da5
100644
(file)
--- 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,