Changeset 6801
- Timestamp:
- 04/07/08 00:22:35 (9 months ago)
- Files:
-
- trunk/openlayers/lib/OpenLayers/Format/JSON.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/lib/OpenLayers/Format/JSON.js
r6430 r6801 96 96 */ 97 97 try { 98 if(/^("(\\.|[^"\\\n\r])*?"|[,:{}\[\]0-9.\-+Eaeflnr-u \n\r\t])+?$/. 99 test(json)) { 98 if (/^[\],:{}\s]*$/.test(json.replace(/\\["\\\/bfnrtu]/g, '@'). 99 replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, ']'). 100 replace(/(?:^|:|,)(?:\s*\[)+/g, ''))) { 100 101 101 102 /**
