Merge pull request #89 from itoffshore/alpine

update-ngxblocker: fix email regex
This commit is contained in:
Mitchell Krog 2017-09-02 19:03:54 +02:00 committed by GitHub
commit 12d7c7a908

View file

@ -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