Skip to content

Commit 087a4f1

Browse files
committed
fixup! fixup! Try and fix the negate again
1 parent b000d6a commit 087a4f1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

browser/queryan.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@ const predicate =
155155
return passes(rest, or(predicate, matches(token)));
156156
}
157157

158+
if (isLeftOfOr(token, queryTokens)) {
159+
return and(predicate, passes(rest, matches(token)));
160+
}
161+
158162
return passes(rest, and(predicate, matches(token)));
159163
};
160164

0 commit comments

Comments
 (0)