Skip to content

Commit

Permalink
[7.17] added '\' escapes (#199185) (#199213)
Browse files Browse the repository at this point in the history
# Backport

This will backport the following commits from `main` to `7.17`:
- [added '\' escapes
(#199185)](#199185)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Bryce
Buchanan","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-11-06T19:02:41Z","message":"added
'\\' escapes (#199185)\n\n## Summary\r\n\r\nThis PR adds backslash
escaping to previous code scan
fixes.","sha":"fb7114222b5bde5846fdda85a2ae0e94797600e2","branchLabelMapping":{"^v9.0.0$":"main","^v8.17.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","ci:project-deploy-observability","Team:obs-ux-infra_services","backport:version","v8.15.4","v7.17.26"],"title":"added
'\\'
escapes","number":199185,"url":"https://github.com/elastic/kibana/pull/199185","mergeCommit":{"message":"added
'\\' escapes (#199185)\n\n## Summary\r\n\r\nThis PR adds backslash
escaping to previous code scan
fixes.","sha":"fb7114222b5bde5846fdda85a2ae0e94797600e2"}},"sourceBranch":"main","suggestedTargetBranches":["8.15","7.17"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/199185","number":199185,"mergeCommit":{"message":"added
'\\' escapes (#199185)\n\n## Summary\r\n\r\nThis PR adds backslash
escaping to previous code scan
fixes.","sha":"fb7114222b5bde5846fdda85a2ae0e94797600e2"}},{"branch":"8.15","label":"v8.15.4","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"7.17","label":"v7.17.26","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Bryce Buchanan <[email protected]>
  • Loading branch information
kibanamachine and bryce-b authored Nov 6, 2024
1 parent 6ecccd3 commit 83ca026
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ export const createFilterFromOptions = (
filters.push(options.filterQuery);
}
if (options.groupBy) {
const id = series.id.replace(/"/g, '\\"');
const id = series.id.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
const groupByFilters = Array.isArray(options.groupBy)
? options.groupBy
.map((field, index) => {
Expand Down

0 comments on commit 83ca026

Please sign in to comment.