• 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.

    Parameters

    • username: string
    • required: boolean = true
    • acceptedStartChars: string = 'qwertyuiopasdfghjklzxcvbnm'
    • acceptedMiddleChars: string = 'qwertyuiopasdfghjklzxcvbnm_0123456789'
    • acceptedEndChars: string = 'qwertyuiopasdfghjklzxcvbnm0123456789'

    Returns [boolean, VoidCallback]

Generated using TypeDoc