alphanumeric usernames

This commit is contained in:
Andrey Petrov 2014-12-12 18:10:14 -08:00
parent 0ab7a5d3c5
commit da10a5d2b8

View File

@ -15,7 +15,7 @@ import (
const MAX_NAME_LENGTH = 32
const HISTORY_LEN = 20
var RE_STRIP_NAME = regexp.MustCompile("[[:^alpha:]]")
var RE_STRIP_NAME = regexp.MustCompile("[^0-9A-Za-z_]")
type Clients map[string]*Client