jquery core: closes #3034. Ids with '-' weren't handled by quickExpr.
This commit is contained in:
parent
fa48ad1d1b
commit
2f2602ed15
|
@ -21,7 +21,7 @@ var jQuery = window.jQuery = window.$ = function( selector, context ) {
|
||||||
|
|
||||||
// A simple way to check for HTML strings or ID strings
|
// A simple way to check for HTML strings or ID strings
|
||||||
// (both of which we optimize for)
|
// (both of which we optimize for)
|
||||||
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
|
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
|
||||||
|
|
||||||
// Is it a simple selector
|
// Is it a simple selector
|
||||||
isSimple = /^.[^:#\[\.]*$/,
|
isSimple = /^.[^:#\[\.]*$/,
|
||||||
|
|
Loading…
Reference in a new issue