From 7f1c69041dae15bf544ab96205b4db05ffe4ff8c Mon Sep 17 00:00:00 2001 From: John Resig Date: Thu, 6 Jul 2006 16:04:12 +0000 Subject: [PATCH 1/1] Fixed a bug with space-less [@foo*=bar]. --- jquery/jquery.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/jquery/jquery.js b/jquery/jquery.js index 352b849..fc13717 100644 --- a/jquery/jquery.js +++ b/jquery/jquery.js @@ -570,10 +570,10 @@ jQuery.Select = function( t, context ) { var last = null; while ( t.length > 0 && last != t ) { - var r = []; + var r = []; last = t; - t = jQuery.cleanSpaces(t).replace( /^\/\//i, "" ); + t = jQuery.cleanSpaces(t).replace( /^\/\//i, "" ); var foundToken = false; @@ -668,7 +668,7 @@ jQuery.filter = function(t,r,not) { g = function(a,f) {return jQuery.grep(a,f,true);}; while ( t && t.match(/^[:\\.#\\[a-zA-Z\\*]/) ) { - var re = /^\[ *@([a-z0-9*()_-]+) *([~!|*$^=]*) *'?"?([^'"]*)'?"? *\]/i; + var re = /^\[ *@([a-z*_-][a-z0-9()_-]*) *([~!|*$^=]*) *'?"?([^'"]*)'?"? *\]/i; var m = re.exec(t); if ( m ) -- 1.7.10.4