From 3f1632e8d1ecca888de2e896233371e3156828ec Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Thu, 24 Aug 2023 15:43:00 -0500 Subject: [PATCH] ...in the right place, please --- src/types/client/clan.ts | 78 ++++++++++++++++++++-------------------- 1 file changed, 39 insertions(+), 39 deletions(-) diff --git a/src/types/client/clan.ts b/src/types/client/clan.ts index b0ad2b8..76f4674 100644 --- a/src/types/client/clan.ts +++ b/src/types/client/clan.ts @@ -20,26 +20,28 @@ export const SubmitClanSchema = yup pronouns: yup .array() .of( - yup.tuple([ - yup - .string() - .required() - .matches(/^[A-z]+$/, "Letters only") - .max(10) - .lowercase(), // she, he, they - yup - .string() - .required() - .matches(/^[A-z]+$/, "Letters only") - .max(10) - .lowercase(), // her, him, them - yup - .string() - .required() - .matches(/^[A-z]+$/, "Letters only") - .max(10) - .lowercase() // hers, his, theirs - ]) + yup + .tuple([ + yup + .string() + .required() + .matches(/^[A-z]+$/, "Letters only") + .max(10) + .lowercase(), // she, he, they + yup + .string() + .required() + .matches(/^[A-z]+$/, "Letters only") + .max(10) + .lowercase(), // her, him, them + yup + .string() + .required() + .matches(/^[A-z]+$/, "Letters only") + .max(10) + .lowercase() // hers, his, theirs + ]) + .required() ) .required() .min(1) @@ -94,25 +96,23 @@ 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 - ]) - .required() + 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 + ]) ) .min(1) })