Fix IsValidUser() (#12)

Fails while checking the first character of name if > J.
This commit is contained in:
Pete 2018-04-27 17:00:08 +01:00 committed by Liam Stanley
parent e46d210b5d
commit 102f17f863

View File

@ -271,7 +271,7 @@ func IsValidUser(name string) bool {
}
// Check to see if the first index is alphanumeric.
if (name[0] < 'A' || name[0] > 'J') && (name[0] < 'a' || name[0] > 'z') && (name[0] < '0' || name[0] > '9') {
if (name[0] < 'A' || name[0] > 'Z') && (name[0] < 'a' || name[0] > 'z') && (name[0] < '0' || name[0] > '9') {
return false
}