Skip to content

Commit 7a18252

Browse files
[\d+]
1 parent 8e0b15c commit 7a18252

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cycle.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
// cycle.js
2-
// 2011-02-23
2+
// 2011-08-24
33

4-
/*jslint evil: true, regexp: false */
4+
/*jslint evil: true, regexp: true */
55

66
/*members $ref, apply, call, decycle, hasOwnProperty, length, prototype, push,
77
retrocycle, stringify, test, toString
88
*/
99

1010
if (typeof JSON.decycle !== 'function') {
1111
JSON.decycle = function decycle(object) {
12-
"use strict";
12+
'use strict';
1313

1414
// Make a deep copy of an object or array, assuring that there is at most
1515
// one instance of each object or array in the resulting structure. The
@@ -94,7 +94,7 @@ if (typeof JSON.decycle !== 'function') {
9494

9595
if (typeof JSON.retrocycle !== 'function') {
9696
JSON.retrocycle = function retrocycle($) {
97-
"use strict";
97+
'use strict';
9898

9999
// Restore an object that was reduced by decycle. Members whose values are
100100
// objects of the form
@@ -116,7 +116,7 @@ if (typeof JSON.retrocycle !== 'function') {
116116
// produces an array containing a single element which is the array itself.
117117

118118
var px =
119-
/^\$(?:\[(?:\d?|\"(?:[^\\\"\u0000-\u001f]|\\([\\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*\")\])*$/;
119+
/^\$(?:\[(?:\d+|\"(?:[^\\\"\u0000-\u001f]|\\([\\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*\")\])*$/;
120120

121121
(function rez(value) {
122122

0 commit comments

Comments
 (0)