Browse files

Added support for % in parser

  • Loading branch information...
1 parent df559a1 commit a69a5b062090d241d60ce2b3f2d28f56070959b8 @kriszyp committed May 14, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 put.js
View
2 put.js
@@ -13,7 +13,7 @@ define([], forDocument = function(doc, newFragmentFasterHeuristic){
// | put("div.foo");
fragmentFasterHeuristic = newFragmentFasterHeuristic || fragmentFasterHeuristic;
try{
- var selectorParse = /(?:\s*([-+ ,<>]))?\s*(\.|!\.?|#)?([-\w$]+)?(?:\[([^\]=]+)=?['"]?([^\]'"]*)['"]?\])?/g,
+ var selectorParse = /(?:\s*([-+ ,<>]))?\s*(\.|!\.?|#)?([-\w%$]+)?(?:\[([^\]=]+)=?['"]?([^\]'"]*)['"]?\])?/g,
undefined,
doc = doc || document,
ieCreateElement = 1;

0 comments on commit a69a5b0

Please sign in to comment.