...in the right place, please

This commit is contained in:
MeowcaTheoRange 2023-08-24 15:43:00 -05:00
parent 4b52854180
commit 3f1632e8d1

View file

@ -20,26 +20,28 @@ export const SubmitClanSchema = yup
pronouns: yup pronouns: yup
.array() .array()
.of( .of(
yup.tuple([ yup
yup .tuple([
.string() yup
.required() .string()
.matches(/^[A-z]+$/, "Letters only") .required()
.max(10) .matches(/^[A-z]+$/, "Letters only")
.lowercase(), // she, he, they .max(10)
yup .lowercase(), // she, he, they
.string() yup
.required() .string()
.matches(/^[A-z]+$/, "Letters only") .required()
.max(10) .matches(/^[A-z]+$/, "Letters only")
.lowercase(), // her, him, them .max(10)
yup .lowercase(), // her, him, them
.string() yup
.required() .string()
.matches(/^[A-z]+$/, "Letters only") .required()
.max(10) .matches(/^[A-z]+$/, "Letters only")
.lowercase() // hers, his, theirs .max(10)
]) .lowercase() // hers, his, theirs
])
.required()
) )
.required() .required()
.min(1) .min(1)
@ -94,25 +96,23 @@ export const PartialClanSchema = yup
pronouns: yup pronouns: yup
.array() .array()
.of( .of(
yup yup.tuple([
.tuple([ yup
yup .string()
.string() .matches(/^[A-z]+$/, "Letters only")
.matches(/^[A-z]+$/, "Letters only") .max(10)
.max(10) .lowercase(), // she, he, they
.lowercase(), // she, he, they yup
yup .string()
.string() .matches(/^[A-z]+$/, "Letters only")
.matches(/^[A-z]+$/, "Letters only") .max(10)
.max(10) .lowercase(), // her, him, them
.lowercase(), // her, him, them yup
yup .string()
.string() .matches(/^[A-z]+$/, "Letters only")
.matches(/^[A-z]+$/, "Letters only") .max(10)
.max(10) .lowercase() // hers, his, theirs
.lowercase() // hers, his, theirs ])
])
.required()
) )
.min(1) .min(1)
}) })