git.asbjorn.biz
/
jquery.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76d6d44
)
Added support for (basic) nested parens and (basic) nested brackets. You can now...
author
John Resig
<jeresig@gmail.com>
Tue, 9 Jan 2007 06:04:54 +0000
(06:04 +0000)
committer
John Resig
<jeresig@gmail.com>
Tue, 9 Jan 2007 06:04:54 +0000
(06:04 +0000)
src/selector/selector.js
patch
|
blob
|
history
diff --git
a/src/selector/selector.js
b/src/selector/selector.js
index
d9114c2
..
e21102c
100644
(file)
--- a/
src/selector/selector.js
+++ b/
src/selector/selector.js
@@
-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"