Added support for a[name^='foo['] style selectors. Fies jQuery bug #3928.

This commit is contained in:
John Resig 2009-01-20 19:44:08 +00:00
parent cd28922b78
commit aa7616cf9a
3 changed files with 16 additions and 4 deletions

View file

@ -6,7 +6,7 @@
*/
(function(){
var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|[^[\]]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,
var chunker = /((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]+['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[]+)+|[>+~])(\s*,\s*)?/g,
done = 0,
toString = Object.prototype.toString;