git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
0a9c569
)
Fixed a bug with space-less [@foo*=bar].
author
John Resig
<jeresig@gmail.com>
Thu, 6 Jul 2006 16:04:12 +0000
(16:04 +0000)
committer
John Resig
<jeresig@gmail.com>
Thu, 6 Jul 2006 16:04:12 +0000
(16:04 +0000)
jquery/jquery.js
patch
|
blob
|
history
diff --git
a/jquery/jquery.js
b/jquery/jquery.js
index
352b849
..
fc13717
100644
(file)
--- 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 last = null;
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) {
g = function(a,f) {return jQuery.grep(a,f,true);};
while ( t && t.match(/^[:\\.#\\[a-zA-Z\\*]/) ) {
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 )
var m = re.exec(t);
if ( m )