Commit 2f2602ed authored by Ariel Flesler's avatar Ariel Flesler

jquery core: closes #3034. Ids with '-' weren't handled by quickExpr.

parent fa48ad1d
...@@ -21,7 +21,7 @@ var jQuery = window.jQuery = window.$ = function( selector, context ) { ...@@ -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 = /^.[^:#\[\.]*$/,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment