Skip to content

Commit

Permalink
fix(devbox): fix devbox name
Browse files Browse the repository at this point in the history
  • Loading branch information
xudaotutou committed Jan 10, 2025
1 parent 1389cd0 commit 0ec7f2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/providers/devbox/utils/vaildate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export const versionSchema = z.string().min(1).regex(/[\w][\w.-]{0,127}/, {
message: versionErrorEnum.INVALID_VERSION,
});
export const templateNameSchema = z.string().regex(/^[a-z0-9]([a-z0-9-]*[a-z0-9])?$/);
export const devboxNameSchema = z.string().regex(/^[a-z]([-a-z0-9]*[a-z0-9])?/);
export const devboxNameSchema = z.string().regex(/^[a-z]([-a-z0-9]*[a-z0-9])?$/);
export const createTemplateRepositorySchema = z.object({
description: z.string().max(255),
version: z.string().min(1).max(255),
Expand Down

0 comments on commit 0ec7f2b

Please sign in to comment.