@@ -179,7 +179,7 @@ Object.extend(AjaxPro, {
179
179
var d = date . match ( / D a t e \( ( .* ?) \) / ) [ 1 ] ;
180
180
return "new Date(" + parseInt ( d ) + ")" ;
181
181
}
182
- else { // ISO Date 2007-12-31T23:59:59Z
182
+ /* else { // ISO Date 2007-12-31T23:59:59Z
183
183
var matches = date.split(/[-,:,T,Z]/);
184
184
if (matches.length == 7) {
185
185
matches[1] = (parseInt(matches[1], 0) - 1).toString();
@@ -194,21 +194,17 @@ Object.extend(AjaxPro, {
194
194
s += ",";
195
195
}
196
196
s += parseInt(matches[i], 10);
197
+ console.log(s);
197
198
}
198
199
if (isDate) {
199
200
return "new Date(Date.UTC(" + s + "))";
200
201
}
201
202
}
202
- }
203
+ }*/
203
204
return str ;
204
205
} ,
205
206
parse : function ( text ) {
206
- // not yet possible as we still return new type() JSON
207
- // if (!(!(/[^,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t]/.test(
208
- // text.replace(/"(\\.|[^"\\])*"/g, ''))) ))
209
- // throw new Error("Invalid characters in JSON parse string.");
210
- var regEx = / ( \" \d { 4 } - \d { 2 } - \d { 2 } T \d { 2 } : \d { 2 } .* ?\" ) | ( \" \\ \/ D a t e \( .* ?\) \\ \/ " ) / g;
211
- text = text . replace ( regEx , this . regExDate ) ;
207
+ text = text . replace ( / ( \" \\ \/ D a t e \( \d + \) \\ \/ " ) / g, this . regExDate ) ;
212
208
return eval ( '(' + text + ')' ) ;
213
209
} ,
214
210
m : {
0 commit comments