Skip to content
Permalink
Browse files
Fixed a bug with space-less [@foo*=bar].
  • Loading branch information
jeresig committed Jul 6, 2006
1 parent 0a9c569 commit 7f1c69041dae15bf544ab96205b4db05ffe4ff8c
Showing with 3 additions and 3 deletions.
  1. +3 −3 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 )

0 comments on commit 7f1c690

Please sign in to comment.