From 4b52854180e45e745674ae42e1f8a543649838a5 Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Thu, 24 Aug 2023 15:42:30 -0500 Subject: [PATCH] Clan pronouns --- src/types/client/clan.ts | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/src/types/client/clan.ts b/src/types/client/clan.ts index 1911f77..b0ad2b8 100644 --- a/src/types/client/clan.ts +++ b/src/types/client/clan.ts @@ -94,23 +94,25 @@ export const PartialClanSchema = yup pronouns: yup .array() .of( - yup.tuple([ - yup - .string() - .matches(/^[A-z]+$/, "Letters only") - .max(10) - .lowercase(), // she, he, they - yup - .string() - .matches(/^[A-z]+$/, "Letters only") - .max(10) - .lowercase(), // her, him, them - yup - .string() - .matches(/^[A-z]+$/, "Letters only") - .max(10) - .lowercase() // hers, his, theirs - ]) + yup + .tuple([ + yup + .string() + .matches(/^[A-z]+$/, "Letters only") + .max(10) + .lowercase(), // she, he, they + yup + .string() + .matches(/^[A-z]+$/, "Letters only") + .max(10) + .lowercase(), // her, him, them + yup + .string() + .matches(/^[A-z]+$/, "Letters only") + .max(10) + .lowercase() // hers, his, theirs + ]) + .required() ) .min(1) })