[Pkg-javascript-commits] [json-js] 16/85: [\d+]
Jonas Smedegaard
dr at jones.dk
Mon Mar 14 10:39:14 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository json-js.
commit 7a18252d0ec1b46b26afb933f65434dc1f7844f5
Author: Douglas Crockford <douglas at crockford.com>
Date: Wed Aug 24 09:42:47 2011 -0700
[\d+]
---
cycle.js | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/cycle.js b/cycle.js
index b6fa7dd..1ced7da 100755
--- a/cycle.js
+++ b/cycle.js
@@ -1,7 +1,7 @@
// cycle.js
-// 2011-02-23
+// 2011-08-24
-/*jslint evil: true, regexp: false */
+/*jslint evil: true, regexp: true */
/*members $ref, apply, call, decycle, hasOwnProperty, length, prototype, push,
retrocycle, stringify, test, toString
@@ -9,7 +9,7 @@
if (typeof JSON.decycle !== 'function') {
JSON.decycle = function decycle(object) {
- "use strict";
+ 'use strict';
// Make a deep copy of an object or array, assuring that there is at most
// one instance of each object or array in the resulting structure. The
@@ -94,7 +94,7 @@ if (typeof JSON.decycle !== 'function') {
if (typeof JSON.retrocycle !== 'function') {
JSON.retrocycle = function retrocycle($) {
- "use strict";
+ 'use strict';
// Restore an object that was reduced by decycle. Members whose values are
// objects of the form
@@ -116,7 +116,7 @@ if (typeof JSON.retrocycle !== 'function') {
// produces an array containing a single element which is the array itself.
var px =
- /^\$(?:\[(?:\d?|\"(?:[^\\\"\u0000-\u001f]|\\([\\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*\")\])*$/;
+ /^\$(?:\[(?:\d+|\"(?:[^\\\"\u0000-\u001f]|\\([\\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*\")\])*$/;
(function rez(value) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/json-js.git
More information about the Pkg-javascript-commits
mailing list