Side navigation
Ticket #1331: safari_unicode_regexp.patch
File safari_unicode_regexp.patch, 0.6 KB (added by jhenry, July 05, 2007 03:21PM UTC)
Index: src/selector/selector.js
===================================================================
--- src/selector/selector.js (revision 2248)
+++ src/selector/selector.js (working copy)
@@ -63,7 +63,7 @@
// Match: :even, :last-chlid, #id, .class
new RegExp("^([:.#]*)(" +
- ( jQuery.chars = jQuery.browser.safari && jQuery.browser.version < "3.0.0" ? "\\w" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)")
+ ( jQuery.chars = jQuery.browser.safari && jQuery.browser.version < 416.12 ? "(?:[\\w*_-]|\\\\.)" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)")
],
multiFilter: function( expr, elems, not ) {
Download in other formats:
Original Format
File safari_unicode_regexp.patch, 0.6 KB (added by jhenry, July 05, 2007 03:21PM UTC)
Index: src/selector/selector.js
===================================================================
--- src/selector/selector.js (revision 2248)
+++ src/selector/selector.js (working copy)
@@ -63,7 +63,7 @@
// Match: :even, :last-chlid, #id, .class
new RegExp("^([:.#]*)(" +
- ( jQuery.chars = jQuery.browser.safari && jQuery.browser.version < "3.0.0" ? "\\w" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)")
+ ( jQuery.chars = jQuery.browser.safari && jQuery.browser.version < 416.12 ? "(?:[\\w*_-]|\\\\.)" : "(?:[\\w\u0128-\uFFFF*_-]|\\\\.)" ) + "+)")
],
multiFilter: function( expr, elems, not ) {