Skip to content

Commit

Permalink
[ES|QL] Fixes Incomplete string escaping or encoding error (elastic#1…
Browse files Browse the repository at this point in the history
…93384)

## Summary

Closes elastic/kibana-team#1087

I think that this change will close the second problem. Not 100% sure
but this is how I interpret it
  • Loading branch information
stratoula authored Sep 19, 2024
1 parent db55574 commit 88163b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/kbn-esql-utils/src/utils/append_to_query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export function appendWhereClauseToESQLQuery(
default:
operator = '==';
}
let filterValue = typeof value === 'string' ? `"${value.replace(/"/g, '\\"')}"` : value;
let filterValue = typeof value === 'string' ? `"${value.replace(/\"/g, '\\"')}"` : value;
// Adding the backticks here are they are needed for special char fields
let fieldName = `\`${field}\``;

Expand Down

0 comments on commit 88163b0

Please sign in to comment.