diff options
author | rwldrn <waldron.rick@gmail.com> | 2011-01-01 17:13:04 -0500 |
---|---|---|
committer | rwldrn <waldron.rick@gmail.com> | 2011-01-01 17:13:04 -0500 |
commit | 037d6bd5c33cea91974bbfeaaa30d26e9dc94d48 (patch) | |
tree | cbc4f90fd712e26095aba17ea648d12271eb6252 /src/core.js | |
parent | eed3803c98bf5c074e40aad12f2e91435bf81154 (diff) | |
download | jquery-037d6bd5c33cea91974bbfeaaa30d26e9dc94d48.tar.gz jquery-037d6bd5c33cea91974bbfeaaa30d26e9dc94d48.zip |
4321 returns empty jquery object
Diffstat (limited to 'src/core.js')
-rw-r--r-- | src/core.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core.js b/src/core.js index 0211808c5..fcbd1c358 100644 --- a/src/core.js +++ b/src/core.js @@ -17,7 +17,8 @@ var jQuery = function( selector, context ) { // A simple way to check for HTML strings or ID strings // (both of which we optimize for) - quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/, + quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/, + // Is it a simple selector isSimple = /^.[^:#\[\.,]*$/, |