Skip to main content

Bug Tracker

Side navigation

Ticket #1331: safari_unicode_regexp_2.patch


File safari_unicode_regexp_2.patch, 0.6 KB (added by jhenry, July 05, 2007 11:06PM UTC)
Index: src/selector/selector.js
===================================================================
--- src/selector/selector.js	(revision 2253)
+++ 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 < 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 ) {

Download in other formats:

Original Format