Added a fix for h1 + h2 not working. (Bug #1361)
authorJohn Resig <jeresig@gmail.com>
Fri, 20 Jul 2007 23:43:12 +0000 (23:43 +0000)
committerJohn Resig <jeresig@gmail.com>
Fri, 20 Jul 2007 23:43:12 +0000 (23:43 +0000)
src/selector/selector.js

index a78cb31..b574fa9 100644 (file)
@@ -142,7 +142,7 @@ jQuery.extend({
                                if ( t.indexOf(" ") == 0 ) continue;
                                foundToken = true;
                        } else {
-                               re = /^((\/?\.\.)|([>\/+~]))\s*([a-z]*)/i;
+                               re = /^((\/?\.\.)|([>\/+~]))\s*(\w*)/i;
 
                                if ( (m = re.exec(t)) != null ) {
                                        r = [];