mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 08:27:03 +08:00
riot: loosen username check as sometimes it's not a unix username
This commit is contained in:
parent
1a62ffe74b
commit
bdb64ce1f2
|
@ -14,7 +14,7 @@ check_port() {
|
||||||
|
|
||||||
# check if username valid
|
# check if username valid
|
||||||
check_username() {
|
check_username() {
|
||||||
( echo $1 | grep -qxE "^[a-z][-a-z0-9_]*\$" ) || return 1
|
( echo $1 | grep -qxE "^[-.a-z0-9_]*\$" ) || return 1
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user