Skip to content

Commit

Permalink
update json2.js to latest version
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@966971 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
jchris committed Jul 23, 2010
1 parent 9c9a2c5 commit 7ab3da4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion share/server/json2.js
@@ -1,6 +1,6 @@
/* /*
http://www.JSON.org/json2.js http://www.JSON.org/json2.js
2009-09-29 2010-03-20
Public Domain. Public Domain.
Expand Down Expand Up @@ -433,6 +433,7 @@ if (!this.JSON) {
// Unicode characters with escape sequences. JavaScript handles many characters // Unicode characters with escape sequences. JavaScript handles many characters
// incorrectly, either silently deleting them, or treating them as line endings. // incorrectly, either silently deleting them, or treating them as line endings.


text = String(text);
cx.lastIndex = 0; cx.lastIndex = 0;
if (cx.test(text)) { if (cx.test(text)) {
text = text.replace(cx, function (a) { text = text.replace(cx, function (a) {
Expand Down
3 changes: 2 additions & 1 deletion share/www/script/json2.js
@@ -1,6 +1,6 @@
/* /*
http://www.JSON.org/json2.js http://www.JSON.org/json2.js
2009-09-29 2010-03-20
Public Domain. Public Domain.
Expand Down Expand Up @@ -433,6 +433,7 @@ if (!this.JSON) {
// Unicode characters with escape sequences. JavaScript handles many characters // Unicode characters with escape sequences. JavaScript handles many characters
// incorrectly, either silently deleting them, or treating them as line endings. // incorrectly, either silently deleting them, or treating them as line endings.


text = String(text);
cx.lastIndex = 0; cx.lastIndex = 0;
if (cx.test(text)) { if (cx.test(text)) {
text = text.replace(cx, function (a) { text = text.replace(cx, function (a) {
Expand Down

0 comments on commit 7ab3da4

Please sign in to comment.