We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 59c78ff + 587243e commit d60cf8cCopy full SHA for d60cf8c
packages/deparser/src/deparser.ts
@@ -976,6 +976,10 @@ export class Deparser implements DeparserVisitor {
976
977
const boolContext = { ...context, bool: true };
978
979
+ // explanation of our syntax/fix below:
980
+ // return formatStr.replace('%s', andArgs); // ❌ Interprets $ as special syntax
981
+ // return formatStr.replace('%s', () => andArgs); // ✅ Function callback prevents interpretation
982
+
983
switch (boolop) {
984
case 'AND_EXPR':
985
const andArgs = args.map(arg => this.visit(arg, boolContext)).join(' AND ');
0 commit comments