Skip to content

Commit

Permalink
Add whitespace matchers around square brackets
Browse files Browse the repository at this point in the history
  • Loading branch information
ukutaht committed Feb 3, 2025
1 parent 7c5a436 commit 4aa0560
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plausible/segments/segments.ex
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ defmodule Plausible.Segments do
%Plausible.Goal{} = updated_goal
) do
goal_filter_regex =
~s(.*?\\["is",\s*"event:goal",\s*\\[.*?"#{Regex.escape(stale_goal.display_name)}".*?\\]\\].*?)
~s(.*?\\[\s*"is",\s*"event:goal",\s*\\[.*?"#{Regex.escape(stale_goal.display_name)}".*?\\]\s*\\].*?)

segments_to_update =
from(
Expand Down

0 comments on commit 4aa0560

Please sign in to comment.