Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/deparser/src/deparser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,10 @@ export class Deparser implements DeparserVisitor {

const boolContext = { ...context, bool: true };

// explanation of our syntax/fix below:
// return formatStr.replace('%s', andArgs); // ❌ Interprets $ as special syntax
// return formatStr.replace('%s', () => andArgs); // ✅ Function callback prevents interpretation

switch (boolop) {
case 'AND_EXPR':
const andArgs = args.map(arg => this.visit(arg, boolContext)).join(' AND ');
Expand Down