mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
fix: update NameableRegex schema to allow empty name and remove useless regex check
This commit is contained in:
@@ -199,8 +199,8 @@ const OptionDefinition = z.object({
|
||||
export type Option = z.infer<typeof OptionDefinition>;
|
||||
|
||||
const NameableRegex = z.object({
|
||||
name: z.string().min(1),
|
||||
pattern: z.string().regex(/^.*$/),
|
||||
name: z.string().min(0),
|
||||
pattern: z.string().min(1),
|
||||
});
|
||||
|
||||
const Group = z.object({
|
||||
|
||||
Reference in New Issue
Block a user