Skip to content

Open source, privacy-first web analytics. Lightweight, cookie-free Google Analytics alternative. Self-hosted or cloud.

Remove redundant dot (#4178)

hq1c22687172a1e
diff --git a/lib/plausible/verification/errors.ex b/lib/plausible/verification/errors.ex
index ed4e091e8e..324a70a3e1 100644
--- a/lib/plausible/verification/errors.ex
+++ b/lib/plausible/verification/errors.ex
@@ -13,7 +13,7 @@ defmodule Plausible.Verification.Errors do
gtm_cookie_banner: %{
message: "We couldn't verify your website",
recommendation:
- "As you're using Google Tag Manager, you'll need to use a GTM-specific Plausible snippet. Please make sure no cookie consent banner is blocking our script.",
+ "As you're using Google Tag Manager, you'll need to use a GTM-specific Plausible snippet. Please make sure no cookie consent banner is blocking our script",
url: "https://plausible.io/docs/google-tag-manager"
},
csp: %{
@@ -147,4 +147,10 @@ defmodule Plausible.Verification.Errors do
}
def all(), do: @errors
+
+ for {_, %{message: message, recommendation: recommendation} = e} <- @errors do
+ if String.ends_with?(message, ".") or String.ends_with?(recommendation, ".") do
+ raise "Error message/recommendation should not end with a period: #{inspect(e)}"
+ end
+ end
end