From: John Resig Date: Fri, 6 Jul 2007 13:36:38 +0000 (+0000) Subject: Final fix for Safari crasher (bug #1331). X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;ds=sidebyside;h=bdb5dad8e521c060980e3efecb53b81b15ce74b0;p=jquery.git Final fix for Safari crasher (bug #1331). --- diff --git a/src/selector/selector.js b/src/selector/selector.js index c3d7f7a..a78cb31 100644 --- a/src/selector/selector.js +++ b/src/selector/selector.js @@ -63,7 +63,7 @@ jQuery.extend({ // Match: :even, :last-chlid, #id, .class new RegExp("^([:.#]*)(" + - ( jQuery.chars = jQuery.browser.safari && jQuery.browser.version < 416.12 ? "(?:[\\w*_-]|\\\\.)" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)") + ( jQuery.chars = jQuery.browser.safari && parseInt(jQuery.browser.version) < 417 ? "(?:[\\w*_-]|\\\\.)" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)") ], multiFilter: function( expr, elems, not ) {