Merge pull request #220 from lautis/escape-null
Escape null characters as \x00
This commit is contained in:
commit
a4889a0f2e
|
|
@ -96,7 +96,7 @@ function OutputStream(options) {
|
||||||
case "\u2029": return "\\u2029";
|
case "\u2029": return "\\u2029";
|
||||||
case '"': ++dq; return '"';
|
case '"': ++dq; return '"';
|
||||||
case "'": ++sq; return "'";
|
case "'": ++sq; return "'";
|
||||||
case "\0": return "\\0";
|
case "\0": return "\\x00";
|
||||||
}
|
}
|
||||||
return s;
|
return s;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user