From 6209d72aeede6aa8ce4f8e009d2ea168bb8f77a7 Mon Sep 17 00:00:00 2001 From: Vignesh Joglekar Date: Fri, 21 May 2021 04:01:17 -0500 Subject: [PATCH] Bugfix in realtime view, formatting --- assets/js/dashboard/realtime.js | 2 +- lib/plausible/stats/clickhouse.ex | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/assets/js/dashboard/realtime.js b/assets/js/dashboard/realtime.js index 1a05c8d66..33ce0dbad 100644 --- a/assets/js/dashboard/realtime.js +++ b/assets/js/dashboard/realtime.js @@ -33,7 +33,7 @@ class Realtime extends React.Component {
- +
diff --git a/lib/plausible/stats/clickhouse.ex b/lib/plausible/stats/clickhouse.ex index d07386a5a..096b91024 100644 --- a/lib/plausible/stats/clickhouse.ex +++ b/lib/plausible/stats/clickhouse.ex @@ -1520,9 +1520,11 @@ defmodule Plausible.Stats.Clickhouse do defp convert_path_regex(path) do contains_regex = String.match?(path, ~r/\*/) - regex = "^#{path}\/?$" - |> String.replace(~r/\*\*/, ".*") - |> String.replace(~r/(? String.replace(~r/\*\*/, ".*") + |> String.replace(~r/(?