Don't allow periods in zone or camera group names (#13400)

This commit is contained in:
Josh Hawkins
2024-08-29 19:58:36 -06:00
committed by Nicolas Mowen
parent 3f996cd62c
commit 55e1f865d8
2 changed files with 16 additions and 0 deletions
@@ -106,6 +106,14 @@ export default function ZoneEditPane({
{
message: "Zone name already exists on this camera.",
},
)
.refine(
(value: string) => {
return !value.includes(".");
},
{
message: "Zone name must not contain a period.",
},
),
inertia: z.coerce
.number()