Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
bf7b122ab2 | ||
|
|
e29048b54a | ||
|
|
2eeb640eca | ||
|
|
ceb200fe81 | ||
|
|
f5f8239057 |
@@ -51,6 +51,7 @@ function OutputStream(options) {
|
|||||||
quote_keys : false,
|
quote_keys : false,
|
||||||
space_colon : true,
|
space_colon : true,
|
||||||
ascii_only : false,
|
ascii_only : false,
|
||||||
|
unescape_regexps : false,
|
||||||
inline_script : false,
|
inline_script : false,
|
||||||
width : 80,
|
width : 80,
|
||||||
max_line_len : 32000,
|
max_line_len : 32000,
|
||||||
@@ -1140,6 +1141,7 @@ function OutputStream(options) {
|
|||||||
0x21 , // !
|
0x21 , // !
|
||||||
0x0a , // \n
|
0x0a , // \n
|
||||||
0x0d , // \r
|
0x0d , // \r
|
||||||
|
0x00 , // \0
|
||||||
0xfeff , // Unicode BOM
|
0xfeff , // Unicode BOM
|
||||||
0x2028 , // unicode "line separator"
|
0x2028 , // unicode "line separator"
|
||||||
0x2029 , // unicode "paragraph separator"
|
0x2029 , // unicode "paragraph separator"
|
||||||
@@ -1150,7 +1152,7 @@ function OutputStream(options) {
|
|||||||
var str = self.getValue().toString();
|
var str = self.getValue().toString();
|
||||||
if (output.option("ascii_only")) {
|
if (output.option("ascii_only")) {
|
||||||
str = output.to_ascii(str);
|
str = output.to_ascii(str);
|
||||||
} else {
|
} else if (output.option("unescape_regexps")) {
|
||||||
str = str.split("\\\\").map(function(str){
|
str = str.split("\\\\").map(function(str){
|
||||||
return str.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g, function(s){
|
return str.replace(/\\u[0-9a-fA-F]{4}|\\x[0-9a-fA-F]{2}/g, function(s){
|
||||||
var code = parseInt(s.substr(2), 16);
|
var code = parseInt(s.substr(2), 16);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"description": "JavaScript parser, mangler/compressor and beautifier toolkit",
|
"description": "JavaScript parser, mangler/compressor and beautifier toolkit",
|
||||||
"homepage": "http://lisperator.net/uglifyjs",
|
"homepage": "http://lisperator.net/uglifyjs",
|
||||||
"main": "tools/node.js",
|
"main": "tools/node.js",
|
||||||
"version": "2.4.11",
|
"version": "2.4.12",
|
||||||
"engines": { "node" : ">=0.4.0" },
|
"engines": { "node" : ">=0.4.0" },
|
||||||
"maintainers": [{
|
"maintainers": [{
|
||||||
"name": "Mihai Bazon",
|
"name": "Mihai Bazon",
|
||||||
|
|||||||
Reference in New Issue
Block a user