mirror of
https://github.com/DictXiong/dotfiles.git
synced 2025-07-08 01:50:29 +08:00
Revert "riot: loosen username check as sometimes it's not a unix username"
This reverts commit bdb64ce1f2945f49ed877014bffe77131b7f2767.
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…
x
Reference in New Issue
Block a user