From 96d355ffdabeb4a308b0f99a9f9a198b8a7d8733 Mon Sep 17 00:00:00 2001 From: Viren070 Date: Thu, 12 Jun 2025 17:35:37 +0100 Subject: [PATCH] fix: update NameableRegex schema to allow empty name and remove useless regex check --- packages/core/src/db/schemas.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/db/schemas.ts b/packages/core/src/db/schemas.ts index 128982ec..2f15e748 100644 --- a/packages/core/src/db/schemas.ts +++ b/packages/core/src/db/schemas.ts @@ -199,8 +199,8 @@ const OptionDefinition = z.object({ export type Option = z.infer; 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({