Commit 7f1c6904 authored by John Resig's avatar John Resig

Fixed a bug with space-less [@foo*=bar].

parent 0a9c5698
...@@ -570,10 +570,10 @@ jQuery.Select = function( t, context ) { ...@@ -570,10 +570,10 @@ jQuery.Select = function( t, context ) {
var last = null; var last = null;
while ( t.length > 0 && last != t ) { while ( t.length > 0 && last != t ) {
var r = []; var r = [];
last = t; last = t;
t = jQuery.cleanSpaces(t).replace( /^\/\//i, "" ); t = jQuery.cleanSpaces(t).replace( /^\/\//i, "" );
var foundToken = false; var foundToken = false;
...@@ -668,7 +668,7 @@ jQuery.filter = function(t,r,not) { ...@@ -668,7 +668,7 @@ jQuery.filter = function(t,r,not) {
g = function(a,f) {return jQuery.grep(a,f,true);}; g = function(a,f) {return jQuery.grep(a,f,true);};
while ( t && t.match(/^[:\\.#\\[a-zA-Z\\*]/) ) { 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); var m = re.exec(t);
if ( m ) if ( m )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment