From: John Resig Date: Thu, 6 Jul 2006 16:04:12 +0000 (+0000) Subject: Fixed a bug with space-less [@foo*=bar]. X-Git-Url: http://git.asbjorn.biz/?a=commitdiff_plain;h=7f1c69041dae15bf544ab96205b4db05ffe4ff8c;hp=0a9c5698398f7a8347d2d5956c9d11a3eb2933d6;p=jquery.git Fixed a bug with space-less [@foo*=bar]. --- 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 )