Skip to content

Commit 427e952

Browse files
authored
[7.17][SecuritySolution][Endpoint]Remove redundant escape chars from regex (#196486)
> [!Note] > For 7.17 ## Summary Cleans up redundant escape characters from regex within security_solution plugin (endpoint management)
1 parent f7b8f9b commit 427e952

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

x-pack/plugins/security_solution/server/endpoint/utils/audit_log_helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ import { doesLogsEndpointActionsIndexExist } from '../utils';
3434
const actionsIndices = [AGENT_ACTIONS_INDEX, ENDPOINT_ACTIONS_INDEX];
3535
// search all responses indices irrelevant of namespace
3636
const responseIndices = [AGENT_ACTIONS_RESULTS_INDEX, ENDPOINT_ACTION_RESPONSES_INDEX_PATTERN];
37-
export const logsEndpointActionsRegex = new RegExp(`(^\.ds-\.logs-endpoint\.actions-default-).+`);
37+
export const logsEndpointActionsRegex = new RegExp(`(^.ds-.logs-endpoint.actions-default-).+`);
3838
// matches index names like .ds-.logs-endpoint.action.responses-name_space---suffix-2022.01.25-000001
3939
export const logsEndpointResponsesRegex = new RegExp(
40-
`(^\.ds-\.logs-endpoint\.action\.responses-\\w+-).+`
40+
`(^.ds-.logs-endpoint.action.responses-\\w+-).+`
4141
);
4242
const queryOptions = {
4343
headers: {

0 commit comments

Comments
 (0)