Skip to content

Commit

Permalink
Fix regex match
Browse files Browse the repository at this point in the history
  • Loading branch information
peterszerzo committed Jul 22, 2024
1 parent 35d1a12 commit 2abdc43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/journey-manager/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ const matchesUrlCondition = (urlCondition: UrlCondition): boolean => {
return url.includes(urlCondition.value);
}
if (urlCondition.operator === "matches_regex") {
return !url.match(new RegExp(urlCondition.value));
return !!url.match(new RegExp(urlCondition.value));
}
if (urlCondition.operator === "smart_match") {
try {
Expand Down

0 comments on commit 2abdc43

Please sign in to comment.