Oops, 'list' was only matching on one item, because the boolean was
inverted.
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -142,9 +142,9 @@ const compileMatcher = (ast: AST, selector: string): MatcherProducer => { | ... | @@ -142,9 +142,9 @@ const compileMatcher = (ast: AST, selector: string): MatcherProducer => { |
142 | const matchers = ast.list.map(s => makeMatcher(s)) | 142 | const matchers = ast.list.map(s => makeMatcher(s)) |
143 | return (context, node, parent, i, debug, special) => { | 143 | return (context, node, parent, i, debug, special) => { |
144 | for (const matcher of matchers) { | 144 | for (const matcher of matchers) { |
145 | if (!matcher(context, node, parent, i, debug, special)) return false | 145 | if (matcher(context, node, parent, i, debug, special)) return true |
146 | } | 146 | } |
147 | return true | 147 | return false |
148 | } | 148 | } |
149 | } | 149 | } |
150 | case 'compound': { | 150 | case 'compound': { | ... | ... |
-
Please register or sign in to post a comment