Skip to content

Commit

Permalink
added '\' escapes (#199185)
Browse files Browse the repository at this point in the history
## Summary

This PR adds backslash escaping to previous code scan fixes.

(cherry picked from commit fb71142)

# Conflicts:
#	x-pack/plugins/observability_solution/infra/public/pages/metrics/metrics_explorer/components/helpers/create_tsvb_link.ts
  • Loading branch information
bryce-b committed Nov 7, 2024
1 parent c93641b commit 47279b0
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('"', '\\"');
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 47279b0

Please sign in to comment.