We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd671ab commit d186ce5Copy full SHA for d186ce5
src/prototype/lang/string.js
@@ -746,7 +746,7 @@ Object.extend(String.prototype, (function() {
746
**/
747
function evalJSON(sanitize) {
748
var json = this.unfilterJSON(),
749
- cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
+ cx = /[\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff\u0000]/g;
750
if (cx.test(json)) {
751
json = json.replace(cx, function (a) {
752
return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);
0 commit comments