We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 872969f commit d8abb4cCopy full SHA for d8abb4c
1 file changed
x-pack/plugins/graph/public/helpers/kql_encoder.ts
@@ -10,7 +10,7 @@ import rison from '@kbn/rison';
10
import { Workspace } from '../types';
11
12
function escapeQuotes(str: string) {
13
- return str.replace(/"/g, '\\"');
+ return str.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
14
}
15
16
export function asKQL(workspace: Workspace, joinBy: 'and' | 'or') {
0 commit comments