diff options
author | Adam Warner <me@adamwarner.co.uk> | 2020-05-06 10:40:54 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-06 10:40:54 +0300 |
commit | 369288cc48bdad27fd0ae924d4d7feda3908b174 (patch) | |
tree | 1258557bb532c63b2ab11f0f4a3f2f28ecff43e1 | |
parent | 26f71e4dbe08517ebd35cc972b70462bb1823e5e (diff) |
Update advanced/Scripts/webpage.sh
Co-authored-by: DL6ER <DL6ER@users.noreply.github.com>
-rwxr-xr-x | advanced/Scripts/webpage.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/advanced/Scripts/webpage.sh b/advanced/Scripts/webpage.sh index 3a04bbd7..48f6ca6b 100755 --- a/advanced/Scripts/webpage.sh +++ b/advanced/Scripts/webpage.sh @@ -521,7 +521,7 @@ Options: # Sanitize email address in case of security issues # 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])?\$" + regex="^[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\$" if [[ ! "${args[2]}" =~ ${regex} ]]; then echo -e " ${CROSS} Invalid email address" exit 0 |