mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
rename alphanumeric
This commit is contained in:
@@ -35,7 +35,7 @@ export const createUserValidator = (users: UserType[], creating: boolean) =>
|
|||||||
{
|
{
|
||||||
type: 'string',
|
type: 'string',
|
||||||
pattern: /^[a-zA-Z0-9_\\.]{1,24}$/,
|
pattern: /^[a-zA-Z0-9_\\.]{1,24}$/,
|
||||||
message: "Must be 1-24 characters: alpha numeric, '_' or '.'"
|
message: "Must be 1-24 characters: alphanumeric, '_' or '.'"
|
||||||
},
|
},
|
||||||
...(creating ? [createUniqueUsernameValidator(users)] : [])
|
...(creating ? [createUniqueUsernameValidator(users)] : [])
|
||||||
],
|
],
|
||||||
|
|||||||
Reference in New Issue
Block a user