From 7c271dc3c14fc6c751fb69b16adf6f08bfd5ac7b Mon Sep 17 00:00:00 2001 From: moonrailgun Date: Fri, 27 Sep 2024 01:54:46 +0800 Subject: [PATCH] fix: remove workspace name validation --- src/server/trpc/routers/workspace.ts | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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)