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