Refactor colorCode validation in PrefixSchema to allow any length string starting with "§"
All checks were successful
SteamWarCI Build successful
All checks were successful
SteamWarCI Build successful
This commit is contained in:
@ -21,7 +21,7 @@ import {z} from "zod";
|
|||||||
|
|
||||||
export const PrefixSchema = z.object({
|
export const PrefixSchema = z.object({
|
||||||
name: z.string().startsWith("PREFIX_"),
|
name: z.string().startsWith("PREFIX_"),
|
||||||
colorCode: z.string().length(2).startsWith("§"),
|
colorCode: z.string().startsWith("§"),
|
||||||
chatPrefix: z.string(),
|
chatPrefix: z.string(),
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user