mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 10:37:42 -07:00
Improve email validation
This commit is contained in:
parent
e6d6e19032
commit
aacaf1b08f
1 changed files with 1 additions and 1 deletions
|
@ -612,7 +612,7 @@ is_dns_record_format_valid() {
|
|||
|
||||
# Email format validator
|
||||
is_email_format_valid() {
|
||||
if [[ ! "$1" =~ "@" ]] ; then
|
||||
if [[ ! "$1" =~ ^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,63}$ ]] ; then
|
||||
check_result $E_INVALID "invalid email format :: $1"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue