From 41b847b3e48bea71fc937694d0f2f406eb9ee52a Mon Sep 17 00:00:00 2001 From: Chaoscaot Date: Tue, 16 Sep 2025 18:07:39 +0200 Subject: [PATCH] =?UTF-8?q?Refactor=20colorCode=20validation=20in=20Prefix?= =?UTF-8?q?Schema=20to=20allow=20any=20length=20string=20starting=20with?= =?UTF-8?q?=20"=C2=A7"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/types/perms.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/types/perms.ts b/src/components/types/perms.ts index 8fb08f9..d5e5c10 100644 --- a/src/components/types/perms.ts +++ b/src/components/types/perms.ts @@ -17,11 +17,11 @@ * along with this program. If not, see . */ -import {z} from "zod"; +import { z } from "zod"; export const PrefixSchema = z.object({ name: z.string().startsWith("PREFIX_"), - colorCode: z.string().length(2).startsWith("§"), + colorCode: z.string().startsWith("§"), chatPrefix: z.string(), });