~ubuntu-branches/ubuntu/vivid/prototypejs/vivid

« back to all changes in this revision

Viewing changes to prototype-1.7.1.js

  • Committer: Package Import Robot
  • Author(s): Frank Habermann
  • Date: 2013-05-28 20:34:00 UTC
  • Revision ID: package-import@ubuntu.com-20130528203400-6hwmzoya0dfzn2hq
Tags: 1.7.1-3
Reorder JSON regexp class to unbreak on Opera 9 (Closes: #647596)

Show diffs side-by-side

added added

removed removed

Lines of Context:
725
725
 
726
726
  function evalJSON(sanitize) {
727
727
    var json = this.unfilterJSON(),
728
 
        cx = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
 
728
        cx = /[\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff\u0000]/g;
729
729
    if (cx.test(json)) {
730
730
      json = json.replace(cx, function (a) {
731
731
        return '\\u' + ('0000' + a.charCodeAt(0).toString(16)).slice(-4);