mirror of
https://github.com/pi-hole/pi-hole.git
synced 2024-12-24 13:50:17 +00:00
accidentally a space
Signed-off-by: Adam Warner <me@adamwarner.co.uk>
This commit is contained in:
parent
b6ac1585ec
commit
26f71e4dbe
1 changed files with 1 additions and 1 deletions
|
@ -522,7 +522,7 @@ Options:
|
|||
# Regex from https://stackoverflow.com/a/2138832/4065967
|
||||
local regex
|
||||
regex="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
|
||||
if [[ ! "${args[2]}" =~ ${regex} ]]; then
|
||||
if [[ ! "${args[2]}" =~ ${regex} ]]; then
|
||||
echo -e " ${CROSS} Invalid email address"
|
||||
exit 0
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue