- Preparing search index...
- The search index is not available
docs.hg.fi
Function useUsernameValidator
- useUsernameValidator(username: string, required?: boolean, acceptedStartChars?: string, acceptedMiddleChars?: string, acceptedEndChars?: string): [boolean, VoidCallback]
-
Parameters
-
username: string
-
required: boolean = true
-
acceptedStartChars: string = 'qwertyuiopasdfghjklzxcvbnm'
-
acceptedMiddleChars: string = 'qwertyuiopasdfghjklzxcvbnm_0123456789'
-
acceptedEndChars: string = 'qwertyuiopasdfghjklzxcvbnm0123456789'
System username validator
The name is limited to 10 characters because some programs will limit it if longer, e.g. IRC nick will not work.