diff options
author | Mihai Bazon <mihai@bazon.net> | 2012-09-25 15:30:59 +0300 |
---|---|---|
committer | Mihai Bazon <mihai@bazon.net> | 2012-09-25 15:30:59 +0300 |
commit | 10c7f52074718b506d9ebfe5cc5a9c7dd9c25b5a (patch) | |
tree | d62bd247407677ebdcf45dbc61fc571a227f0e58 /lib | |
parent | 4201577dd7c75c1d1b1bddf5c153373275b8e977 (diff) | |
download | tracifyjs-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.js | 2 |
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, |