|
|
@ -522,7 +522,7 @@ Options:
|
|
|
|
# Regex from https://stackoverflow.com/a/2138832/4065967
|
|
|
|
# Regex from https://stackoverflow.com/a/2138832/4065967
|
|
|
|
local regex
|
|
|
|
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])?\$"
|
|
|
|
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"
|
|
|
|
echo -e " ${CROSS} Invalid email address"
|
|
|
|
exit 0
|
|
|
|
exit 0
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|