Skip to content

Commit

Permalink
[Defend Workflows] Fix: proper regexp test for dynamic parameters pre…
Browse files Browse the repository at this point in the history
…sence (#150696)
  • Loading branch information
szwarckonrad committed Feb 9, 2023
1 parent 59468bc commit b5dde1f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export const scheduleNotificationResponseActions = (
? responseAction.params.queries
: [{ query: responseAction.params.query }];
const containsDynamicQueries = some(temporaryQueries, (query) => {
return query.query ? CONTAINS_DYNAMIC_PARAMETER_REGEX.test(query.query) : false;
return query.query ? new RegExp(CONTAINS_DYNAMIC_PARAMETER_REGEX).test(query.query) : false;
});
const { savedQueryId, packId, queries, ecsMapping, ...rest } = responseAction.params;

Expand Down

0 comments on commit b5dde1f

Please sign in to comment.