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
(parent:
fa48ad1
)
jquery core: closes #3034. Ids with '-' weren't handled by quickExpr.
author
Ariel Flesler
<aflesler@gmail.com>
Fri, 13 Jun 2008 18:42:54 +0000
(18:42 +0000)
committer
Ariel Flesler
<aflesler@gmail.com>
Fri, 13 Jun 2008 18:42:54 +0000
(18:42 +0000)
src/core.js
patch
|
blob
|
history
diff --git
a/src/core.js
b/src/core.js
index
5e1f0b0
..
c90f58d
100644
(file)
--- a/
src/core.js
+++ b/
src/core.js
@@
-21,7
+21,7
@@
var jQuery = window.jQuery = window.$ = function( selector, context ) {
// A simple way to check for HTML strings or ID strings
// (both of which we optimize for)
-var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
+var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
// Is it a simple selector
isSimple = /^.[^:#\[\.]*$/,