1
0
mirror of https://github.com/shazow/ssh-chat.git synced 2025-07-07 20:29:00 +03:00

alphanumeric usernames

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

@ -15,7 +15,7 @@ import (
const MAX_NAME_LENGTH = 32 const MAX_NAME_LENGTH = 32
const HISTORY_LEN = 20 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 type Clients map[string]*Client