Skip to content

Commit

Permalink
Remove redundant dot (plausible#4178)
Browse files Browse the repository at this point in the history
  • Loading branch information
aerosol authored Jun 3, 2024
1 parent 5fd4547 commit c226871
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/plausible/verification/errors.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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: %{
Expand Down Expand Up @@ -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

0 comments on commit c226871

Please sign in to comment.