diff --git a/cycle.js b/cycle.js index 7e00c5c..fae2999 100644 --- a/cycle.js +++ b/cycle.js @@ -16,8 +16,8 @@ /*jslint eval, for */ /*property - $ref, decycle, forEach, isArray, keys, length, push, retrocycle, stringify, - test + $ref, decycle, forEach, indexOf, isArray, keys, length, push, retrocycle, + stringify, test */ if (typeof JSON.decycle !== "function") { @@ -141,7 +141,7 @@ if (typeof JSON.retrocycle !== "function") { // return JSON.retrocycle(JSON.parse(s)); // produces an array containing a single element which is the array itself. - var px = /^\$(?:\[(?:\d+|\"(?:[^\\\"\u0000-\u001f]|\\([\\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*\")\])*$/; + var px = /^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\([\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*")\])*$/; (function rez(value) { diff --git a/json2.js b/json2.js index d4720c0..e66f817 100644 --- a/json2.js +++ b/json2.js @@ -1,5 +1,5 @@ // json2.js -// 2016-05-01 +// 2016-10-28 // Public Domain. // NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. // See http://www.JSON.org/js.html @@ -10,7 +10,7 @@ // NOT CONTROL. // This file creates a global JSON object containing two methods: stringify -// and parse. This file is provides the ES5 JSON capability to ES3 systems. +// and parse. This file provides the ES5 JSON capability to ES3 systems. // If a project might run on IE8 or earlier, then this file should be included. // This file does nothing on ES5 systems. @@ -162,7 +162,7 @@ if (typeof JSON !== "object") { var rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g; var rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g; var rx_four = /(?:^|:|,)(?:\s*\[)+/g; - var rx_escapable = /[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; + var rx_escapable = /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; var rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g; function f(n) {