aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMihai Bazon <mihai@bazon.net>2012-09-25 15:30:59 +0300
committerMihai Bazon <mihai@bazon.net>2012-09-25 15:30:59 +0300
commit10c7f52074718b506d9ebfe5cc5a9c7dd9c25b5a (patch)
treed62bd247407677ebdcf45dbc61fc571a227f0e58 /lib
parent4201577dd7c75c1d1b1bddf5c153373275b8e977 (diff)
downloadtracifyjs-10c7f52074718b506d9ebfe5cc5a9c7dd9c25b5a.tar.gz
tracifyjs-10c7f52074718b506d9ebfe5cc5a9c7dd9c25b5a.zip
discard all \uFEFF characters (https://github.com/mishoo/UglifyJS/issues/462)
Diffstat (limited to 'lib')
-rw-r--r--lib/parse.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/parse.js b/lib/parse.js
index 75d948a4..981c1294 100644
--- a/lib/parse.js
+++ b/lib/parse.js
@@ -273,7 +273,7 @@ var EX_EOF = {};
function tokenizer($TEXT, filename) {
var S = {
- text : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/^\uFEFF/, ''),
+ text : $TEXT.replace(/\r\n?|[\n\u2028\u2029]/g, "\n").replace(/\uFEFF/g, ''),
filename : filename,
pos : 0,
tokpos : 0,