the regex

This commit is contained in:
MeowcaTheoRange 2023-10-20 21:24:58 -05:00
parent 4d5ec8edb0
commit 10ef309270

View file

@ -18,7 +18,7 @@ export const SubmitTrollSchema = yup
yup yup
.string() .string()
.notRequired() .notRequired()
.matches(/^[A-z]+$/, "Letters only") .matches(/^[A-z]*$/, "Letters only")
.max(24) .max(24)
.lowercase() .lowercase()
]) ])
@ -35,7 +35,7 @@ export const SubmitTrollSchema = yup
yup yup
.string() .string()
.notRequired() .notRequired()
.matches(/^[A-z-]+$/, "Letters only") .matches(/^[A-z-]*$/, "Letters only")
.lowercase() .lowercase()
.max(50) .max(50)
]) ])
@ -218,7 +218,7 @@ export const PartialTrollSchema = yup
.lowercase(), .lowercase(),
yup yup
.string() .string()
.matches(/^[A-z]+$/, "Letters only") .matches(/^[A-z]*$/, "Letters only")
.max(24) .max(24)
.lowercase() .lowercase()
]), ]),
@ -230,7 +230,7 @@ export const PartialTrollSchema = yup
.lowercase(), .lowercase(),
yup yup
.string() .string()
.matches(/^[A-z-]+$/, "Letters only") .matches(/^[A-z-]*$/, "Letters only")
.lowercase() .lowercase()
]), ]),
pronouns: yup pronouns: yup