Added support for (basic) nested parens and (basic) nested brackets. You can now do: div:not(.foo[a:not(.even)]) or div[p[a.even]].
This commit is contained in:
parent
76d6d445bb
commit
aa424984f7
1 changed files with 2 additions and 2 deletions
|
@ -70,10 +70,10 @@ jQuery.extend({
|
|||
"\\[ *(@)S *([!*$^=]*) *('?\"?)(.*?)\\4 *\\]",
|
||||
|
||||
// Match: [div], [div p]
|
||||
"(\\[)\\s*(.*?)\\s*\\]",
|
||||
"(\\[)\\s*(.*?(\\[.*?\\])?[^[]*?)\\s*\\]",
|
||||
|
||||
// Match: :contains('foo')
|
||||
"(:)S\\(\"?'?([^\\)]*?)\"?'?\\)",
|
||||
"(:)S\\(\"?'?(.*?(\\(.*?\\))?[^(]*?)\"?'?\\)",
|
||||
|
||||
// Match: :even, :last-chlid
|
||||
"([:.#]*)S"
|
||||
|
|
Loading…
Reference in a new issue