backend: update hex color schema to support 3/4 and 6/8 character formats. Supported alfa hex code
This commit is contained in:
parent
693de3aa15
commit
b455a5df49
@ -92,7 +92,7 @@ const VirtualBackgroundConfigSchema: z.ZodType<MeetVirtualBackgroundConfig> = z.
|
||||
|
||||
const ThemeModeSchema: z.ZodType<MeetRoomThemeMode> = z.enum([MeetRoomThemeMode.LIGHT, MeetRoomThemeMode.DARK]);
|
||||
|
||||
const hexColorSchema = z.string().regex(/^#([0-9A-Fa-f]{6}|[0-9A-Fa-f]{3})$/, 'Must be a valid hex color code');
|
||||
const hexColorSchema = z.string().regex(/^#([0-9A-Fa-f]{8}|[0-9A-Fa-f]{6}|[0-9A-Fa-f]{4}|[0-9A-Fa-f]{3})$/, 'Must be a valid hex color code (with or without alpha)');
|
||||
|
||||
const RoomThemeSchema = z.object({
|
||||
name: z
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user