Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

…iskr-master
  • Loading branch information...
commit 0fa93d20a6cf43718b6d66bbd827c793883823af 2 parents 9c4fbf4 + 4a99084
Mihai Bazon mishoo authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 lib/process.js
4 lib/process.js
View
@@ -1039,7 +1039,7 @@ 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";
@@ -1047,6 +1047,8 @@ function make_string(str, ascii_only) {
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 "'";
}
Please sign in to comment.
Something went wrong with that request. Please try again.