Improve readability
This commit is contained in:
parent
63a83a65c3
commit
0b6b8b3da3
|
|
@ -138,8 +138,7 @@ function OutputStream(options) {
|
|||
var re = options.xml_safe ?
|
||||
/[\x00-\x1f\x22\x27\u2028\u2029\0\ud800-\udfff\ufeff\ufffe\uffff]/g :
|
||||
/[\\\b\f\n\r\v\t\x22\x27\u2028\u2029\0\ufeff]/g;
|
||||
str = str.replace(re,
|
||||
function(s, i){
|
||||
str = str.replace(re, function(s, i){
|
||||
switch (s) {
|
||||
case '"': ++dq; return '"';
|
||||
case "'": ++sq; return "'";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user