Fixed the issue where weird characters were being used in ID selectors. Fixes jQuery bug #3913.

This commit is contained in:
John Resig 2009-02-15 22:46:54 +00:00
parent 22c9c9b9d3
commit f0189d6181
3 changed files with 5 additions and 2 deletions

View file

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