Permalink
Browse files

Merge branch 'master' of https://github.com/chriskr/UglifyJS into chr…

…iskr-master
  • Loading branch information...
2 parents 9c4fbf4 + 4a99084 commit 0fa93d20a6cf43718b6d66bbd827c793883823af @mishoo mishoo committed Apr 4, 2011
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/process.js
View
@@ -1039,14 +1039,16 @@ var DOT_CALL_NO_PARENS = jsp.array_to_hash([
function make_string(str, ascii_only) {
var dq = 0, sq = 0;
- str = str.replace(/[\\\b\f\n\r\t\x22\x27]/g, function(s){
+ str = str.replace(/[\\\b\f\n\r\t\x22\x27\u2028\u2029]/g, function(s){
switch (s) {
case "\\": return "\\\\";
case "\b": return "\\b";
case "\f": return "\\f";
case "\n": return "\\n";
case "\r": return "\\r";
case "\t": return "\\t";
+ case "\u2028": return "\\u2028";
+ case "\u2029": return "\\u2029";
case '"': ++dq; return '"';
case "'": ++sq; return "'";
}

0 comments on commit 0fa93d2

Please sign in to comment.