Skip to content

Commit

Permalink
[7.17][SecuritySolution][Endpoint]Remove redundant escape chars from …
Browse files Browse the repository at this point in the history
…regex (#196486)

> [!Note]
> For 7.17

## Summary
Cleans up redundant escape characters from regex within
security_solution plugin (endpoint management)
  • Loading branch information
ashokaditya authored Oct 16, 2024
1 parent f7b8f9b commit 427e952
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ import { doesLogsEndpointActionsIndexExist } from '../utils';
const actionsIndices = [AGENT_ACTIONS_INDEX, ENDPOINT_ACTIONS_INDEX];
// search all responses indices irrelevant of namespace
const responseIndices = [AGENT_ACTIONS_RESULTS_INDEX, ENDPOINT_ACTION_RESPONSES_INDEX_PATTERN];
export const logsEndpointActionsRegex = new RegExp(`(^\.ds-\.logs-endpoint\.actions-default-).+`);
export const logsEndpointActionsRegex = new RegExp(`(^.ds-.logs-endpoint.actions-default-).+`);
// matches index names like .ds-.logs-endpoint.action.responses-name_space---suffix-2022.01.25-000001
export const logsEndpointResponsesRegex = new RegExp(
`(^\.ds-\.logs-endpoint\.action\.responses-\\w+-).+`
`(^.ds-.logs-endpoint.action.responses-\\w+-).+`
);
const queryOptions = {
headers: {
Expand Down

0 comments on commit 427e952

Please sign in to comment.