Skip to content

Commit b5dde1f

Browse files
authored
[Defend Workflows] Fix: proper regexp test for dynamic parameters presence (#150696)
1 parent 59468bc commit b5dde1f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

x-pack/plugins/security_solution/server/lib/detection_engine/rule_response_actions/schedule_notification_response_actions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export const scheduleNotificationResponseActions = (
5252
? responseAction.params.queries
5353
: [{ query: responseAction.params.query }];
5454
const containsDynamicQueries = some(temporaryQueries, (query) => {
55-
return query.query ? CONTAINS_DYNAMIC_PARAMETER_REGEX.test(query.query) : false;
55+
return query.query ? new RegExp(CONTAINS_DYNAMIC_PARAMETER_REGEX).test(query.query) : false;
5656
});
5757
const { savedQueryId, packId, queries, ecsMapping, ...rest } = responseAction.params;
5858

0 commit comments

Comments
 (0)