Clan pronouns

This commit is contained in:
MeowcaTheoRange 2023-08-24 15:42:30 -05:00
parent c9da06445d
commit 4b52854180

View file

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