mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
|
||||
// (both of which we optimize for)
|
||||
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,
|
||||
var quickExpr = /^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,
|
||||
|
||||
// Is it a simple selector
|
||||
isSimple = /^.[^:#\[\.]*$/,
|
||||
|
Loading…
Reference in New Issue
Block a user