diff --git a/src/server/trpc/routers/workspace.ts b/src/server/trpc/routers/workspace.ts index 1fec176..822b2e8 100644 --- a/src/server/trpc/routers/workspace.ts +++ b/src/server/trpc/routers/workspace.ts @@ -36,11 +36,7 @@ export const workspaceRouter = router({ ) .input( z.object({ - name: z - .string() - .max(60) - .min(4) - .regex(slugRegex, { message: 'no a valid name' }), + name: z.string().max(60).min(4), }) ) .output(userInfoSchema)