Skip to content
Browse files

Oops, make sure the regex starts at the beginning

  • Loading branch information...
1 parent fec5d10 commit b1041965e4057dcc6041dc189a492eb5c3ab1f87 @subtleGradient subtleGradient committed Mar 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Slick.Finder.js
View
2 Source/Slick.Finder.js
@@ -341,7 +341,7 @@ local.search = function(context, expression, append, first){
expression.indexOf(',') > -1
// and the expression begins with a + or ~ combinator
// since non-document rooted QSA can't access nodes that aren't descendants of the context
- || (/\s*[~+]/).test(expression)
+ || (/^\s*[~+]/).test(expression)
))
|| Slick.disableQSA
) break querySelector;

0 comments on commit b104196

Please sign in to comment.
Something went wrong with that request. Please try again.