c2977574 by Adam Heath

Oops, 'list' was only matching on one item, because the boolean was

inverted.
1 parent 17c366bb
...@@ -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': {
......