mirror of
https://github.com/plausible/analytics.git
synced 2024-11-27 09:16:25 +03:00
Remove redundant dot (#4178)
This commit is contained in:
parent
5fd4547382
commit
c22687172a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user