mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-01 18:19:55 +00:00
update-ngxblocker: fix email regex
* fixes regex for both busybox & GNU grep closes https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker/issues/87
This commit is contained in:
parent
73cff556b7
commit
ebe4020c7a
1 changed files with 1 additions and 1 deletions
|
@ -174,7 +174,7 @@ check_args() {
|
|||
exit 1
|
||||
fi
|
||||
;;
|
||||
email) if ! echo $arg | grep -E ^[\.-_[:alnum:]]+@[\.-_[:alnum:]]+[\.][\.a-z]+ 1>/dev/null; then
|
||||
email) if ! echo $arg | grep -E ^[-_\.[:alnum:]]+@[-_\.[:alnum:]]+ 1>/dev/null; then
|
||||
printf "$msg email@domain.com\n"
|
||||
exit 1
|
||||
fi
|
||||
|
|
Loading…
Add table
Reference in a new issue