mirror of
https://github.com/fosrl/pangolin.git
synced 2026-03-06 02:36:38 +00:00
Chungus
This commit is contained in:
@@ -17,3 +17,12 @@ export const tlsNameSchema = z
|
||||
)
|
||||
.transform((val) => val.toLowerCase());
|
||||
|
||||
export const privateNamespaceSubdomainSchema = z
|
||||
.string()
|
||||
.regex(
|
||||
/^[a-zA-Z0-9-]+$/,
|
||||
"Namespace subdomain can only contain letters, numbers, and hyphens"
|
||||
)
|
||||
.min(1, "Namespace subdomain must be at least 1 character long")
|
||||
.max(32, "Namespace subdomain must be at most 32 characters long")
|
||||
.transform((val) => val.toLowerCase());
|
||||
|
||||
Reference in New Issue
Block a user