the regex
This commit is contained in:
parent
4d5ec8edb0
commit
10ef309270
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue