Ticket #5212: 5212.patch
File 5212.patch, 1.1 KB (added by , 14 years ago) |
---|
-
trunk/test/test.js
219 219 220 220 [ "x=\"\\nFred\\t\\tKami's \\\\Edu \\r\\n\";" ], 221 221 222 [ "'\\uffef\\xa0\\x1b';" ], 223 222 224 [ "function(){this.a();this.b();this.c();}" ], 223 225 224 226 [ "function(){this.a();this.b();this.c();this.d();}", -
trunk/_source/includes/scriptcompressor.js
140 140 singleParts = value.split( "'" ), 141 141 doubleParts = value.split( '"' ); 142 142 143 value = value.replace( /[\b\t\n\v\f\r\x1b\xa0\ \]/g, function( match )143 value = value.replace( /[\b\t\n\v\f\r\x1b\xa0\uffef\\]/g, function( match ) 144 144 { 145 145 var chars = 146 146 { … … 152 152 '\r' : '\\r', 153 153 '\\' : '\\\\', 154 154 '\x1b' : '\\x1b', 155 '\xa0' : '\\xa0' 155 '\xa0' : '\\xa0', 156 '\uffef' : '\\uffef' 156 157 }; 157 158 158 159 return chars[ match ];