..forgot pronunciation

This commit is contained in:
MeowcaTheoRange 2023-10-20 20:58:07 -05:00
parent 8d079adaf3
commit 37d8669514

View file

@ -30,12 +30,12 @@ export const SubmitTrollSchema = yup
yup yup
.string() .string()
.required() .required()
.matches(/^[A-z-]+$/, "Letters only") .matches(/^[A-z0-9-_]+$/, "Alphanumeric characters only")
.lowercase() .lowercase()
.max(50), .max(50),
yup yup
.string() .string()
.required() .notRequired()
.matches(/^[A-z-]+$/, "Letters only") .matches(/^[A-z-]+$/, "Letters only")
.lowercase() .lowercase()
.max(50) .max(50)
@ -228,7 +228,7 @@ export const PartialTrollSchema = yup
pronunciation: yup.tuple([ pronunciation: yup.tuple([
yup yup
.string() .string()
.matches(/^[A-z-]+$/, "Letters only") .matches(/^[A-z0-9-_]+$/, "Alphanumeric characters only")
.lowercase(), .lowercase(),
yup yup
.string() .string()