Skip to content

Commit d186ce5

Browse files
committed
Bugfix for Opera compatibility
Include Opera bugfix from Debian #647596, fixes issue prototypejs#139
1 parent fd671ab commit d186ce5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prototype/lang/string.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ Object.extend(String.prototype, (function() {
746746
**/
747747
function evalJSON(sanitize) {
748748
var json = this.unfilterJSON(),
749-
cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
749+
cx = /[\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff\u0000]/g;
750750
if (cx.test(json)) {
751751
json = json.replace(cx, function (a) {
752752
return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);

0 commit comments

Comments
 (0)