isUsername

fun isUsername(input: CharSequence?): Boolean

Return whether input matches regex of username.

scope for "a-z", "A-Z", "0-9", "_", "Chinese character"

can't end with "_"

length is between 6 to 20.

Return

true: yes

false: no

Parameters

input

The input.