Allow for numeric first name, unrequire last name
This commit is contained in:
parent
431b885ef7
commit
8d079adaf3
1 changed files with 3 additions and 3 deletions
|
@ -11,13 +11,13 @@ export const SubmitTrollSchema = yup
|
||||||
yup
|
yup
|
||||||
.string()
|
.string()
|
||||||
.required()
|
.required()
|
||||||
.matches(/^[A-z]+$/, "Letters only")
|
.matches(/^[A-z0-9-_]+$/, "Alphanumeric characters only")
|
||||||
.min(3)
|
.min(3)
|
||||||
.max(24)
|
.max(24)
|
||||||
.lowercase(),
|
.lowercase(),
|
||||||
yup
|
yup
|
||||||
.string()
|
.string()
|
||||||
.required()
|
.notRequired()
|
||||||
.matches(/^[A-z]+$/, "Letters only")
|
.matches(/^[A-z]+$/, "Letters only")
|
||||||
.min(3)
|
.min(3)
|
||||||
.max(24)
|
.max(24)
|
||||||
|
@ -213,7 +213,7 @@ export const PartialTrollSchema = yup
|
||||||
name: yup.tuple([
|
name: yup.tuple([
|
||||||
yup
|
yup
|
||||||
.string()
|
.string()
|
||||||
.matches(/^[A-z]+$/, "Letters only")
|
.matches(/^[A-z0-9-_]+$/, "Alphanumeric characters only")
|
||||||
.min(1)
|
.min(1)
|
||||||
.max(24)
|
.max(24)
|
||||||
.lowercase(),
|
.lowercase(),
|
||||||
|
|
Loading…
Reference in a new issue