Skip to content

Commit 026e71a

Browse files
committed
trim channel name
1 parent e696d9f commit 026e71a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

types/client/channel.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ import { object, TypeOf, z } from 'zod';
33
export const createChannelSchema = object({
44
name: z
55
.string({ required_error: 'Channel name is required' })
6-
.min(3, { message: 'Must be at least 3 characters' }),
6+
.min(3, { message: 'Must be at least 3 characters' })
7+
.trim(),
78
description: z.string().optional(),
89
isMedia: z.boolean().optional(),
910
});

0 commit comments

Comments
 (0)