Allow # urls to contain #. Thanks to @alvopass in f9f9ee52e16f37900296e06982a7dccba89...
[jquery.git] / src / core.js
index ab325ee..227dc30 100644 (file)
@@ -17,7 +17,7 @@ var jQuery = function( selector, context ) {
 
        // A simple way to check for HTML strings or ID strings
        // (both of which we optimize for)
-       quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w-]+)$)/,
+       quickExpr = /^(?:[^<]*(<[\w\W]+>)[^>]*$|#([\w\-]+)$)/,
 
        // Is it a simple selector
        isSimple = /^.[^:#\[\.,]*$/,