mirror of
https://github.com/jquery/jquery.git
synced 2024-11-23 02:54:22 +00:00
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
@ -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 New Issue
Block a user