mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 09:48:58 -04:00
## Summary `toKqlExpression` support was added in https://github.com/elastic/kibana/pull/161601. This PR Fixes a bug with `toKqlExpression` that did not properly escape special characters and keywords. Without this fix, you could get into a problematic situation like the following: ```ts const node = fromKueryExpression('field: bar\\*'); const result = toKqlExpression(node); // 'field: bar*' ``` This was incorrect, since if we were then to call `fromKueryExpression` on this value again, we would get a wildcard (`bar*`), not a string. ### Checklist - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios |
||
---|---|---|
.. | ||
src | ||
BUILD.bazel | ||
index.ts | ||
jest.config.js | ||
kibana.jsonc | ||
package.json | ||
README.md | ||
tsconfig.json |
@kbn/es-query
Shared common (client and server sie) utilities shared across packages and plugins.