From ebc59313a507a98e21df6866628a3eef1dfcc9bb Mon Sep 17 00:00:00 2001 From: Uku Taht Date: Tue, 7 Sep 2021 11:31:04 +0300 Subject: [PATCH] Do not match trailing slash by default in page regex --- lib/plausible/stats/base.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plausible/stats/base.ex b/lib/plausible/stats/base.ex index 9543de4e2..c4c7316e7 100644 --- a/lib/plausible/stats/base.ex +++ b/lib/plausible/stats/base.ex @@ -347,7 +347,7 @@ defmodule Plausible.Stats.Base do end def page_regex(expr) do - "^#{expr}\/?$" + "^#{expr}$" |> String.replace(~r/\*\*/, ".*") |> String.replace(~r/(?