Skip to content

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

Fix upper limit of range A-Z (#1668)

bytecode1024d947d761a5d6
diff --git a/lib/plausible/site/schema.ex b/lib/plausible/site/schema.ex
index 625c5bcd6d..f15f9ef76f 100644
--- a/lib/plausible/site/schema.ex
+++ b/lib/plausible/site/schema.ex
@@ -28,7 +28,7 @@ defmodule Plausible.Site do
site
|> cast(attrs, [:domain, :timezone])
|> validate_required([:domain, :timezone])
- |> validate_format(:domain, ~r/^[a-zA-z0-9\-\.\/\:]*$/,
+ |> validate_format(:domain, ~r/^[a-zA-Z0-9\-\.\/\:]*$/,
message: "only letters, numbers, slashes and period allowed"
)
|> unique_constraint(:domain)