mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-07-10 05:31:08 +03:00
alphanumeric usernames
This commit is contained in:
parent
0ab7a5d3c5
commit
da10a5d2b8
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user