mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-06-09 20:02:26 +03:00
alphanumeric usernames
This commit is contained in:
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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user