mirror of
https://github.com/myvesta/vesta
synced 2025-08-19 13:01:52 -07:00
utf-8 support
This commit is contained in:
parent
d00a64bbc8
commit
4469398beb
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,7 @@ validate_format_email() {
|
||||||
|
|
||||||
# Username
|
# Username
|
||||||
validate_format_username() {
|
validate_format_username() {
|
||||||
if ! [[ "$1" =~ ^[a-zA-Z0-9]+([\.|_|-][a-zA-Z0-9]+)?$ ]]; then
|
if ! [[ "$1" =~ ^[[:alnum:]]+([\.|_|-][[:alnum:]]+)?$ ]]; then
|
||||||
echo "Error: $2 $1 is not valid"
|
echo "Error: $2 $1 is not valid"
|
||||||
log_event "$E_INVALID" "$EVENT"
|
log_event "$E_INVALID" "$EVENT"
|
||||||
exit $E_INVALID
|
exit $E_INVALID
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue