Clarify error message for naming validation

This commit is contained in:
Ere Männistö 2024-07-14 15:23:54 +03:00
parent 84c10eec66
commit 2eb5c331a1
3 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ const AddTemplateSchema = z.object({
})
.regex(/^[a-z](?!.*--)([a-z0-9-]*[a-z])?$/, {
message:
"App name supports letters, numbers, '-' and can only start and end letters, and does not support continuous '-'",
"App name supports lowercase letters, numbers, '-' and can only start and end letters, and does not support continuous '-'",
}),
description: z.string().optional(),
});

View File

@ -48,7 +48,7 @@ const AddComposeSchema = z.object({
})
.regex(/^[a-z](?!.*--)([a-z0-9-]*[a-z])?$/, {
message:
"App name supports letters, numbers, '-' and can only start and end letters, and does not support continuous '-'",
"App name supports lowercase letters, numbers, '-' and can only start and end letters, and does not support continuous '-'",
}),
description: z.string().optional(),
});

View File

@ -66,7 +66,7 @@ const baseDatabaseSchema = z.object({
})
.regex(/^[a-z](?!.*--)([a-z0-9-]*[a-z])?$/, {
message:
"App name supports letters, numbers, '-' and can only start and end letters, and does not support continuous '-'",
"App name supports lowercase letters, numbers, '-' and can only start and end letters, and does not support continuous '-'",
}),
databasePassword: z.string(),
dockerImage: z.string(),