Skip to content

Commit

Permalink
jquery selector: closes #3023. The attribute filter accepts ':'.
Browse files Browse the repository at this point in the history
  • Loading branch information
flesler committed Jul 28, 2008
1 parent 23eeaf3 commit a3e9706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selector.js
Expand Up @@ -68,7 +68,7 @@ jQuery.extend({
// The regular expressions that power the parsing engine
parse: [
// Match: [@value='test'], [@foo]
/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,
/^(\[) *@?([\w:-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,

// Match: :contains('foo')
/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,
Expand Down

0 comments on commit a3e9706

Please sign in to comment.