rename alphanumeric

This commit is contained in:
proddy
2024-07-20 11:44:44 +02:00
parent 27eb56aee8
commit d3447694fa

View File

@@ -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)] : [])
], ],