Skip to content
Permalink
Browse files

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

  • Loading branch information
flesler committed Jun 13, 2008
1 parent fa48ad1 commit 2f2602ed15b4bac1274d210348d63931a6fdf39e
Showing with 1 addition and 1 deletion.
  1. +1 −1 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 = /^.[^:#\[\.]*$/,

0 comments on commit 2f2602e

Please sign in to comment.
You can’t perform that action at this time.