Merge pull request #160 from itoffshore/alpine

do not sanitize + in email addresses - further fix
This commit is contained in:
Stuart Cardall 2018-04-04 20:19:42 +01:00 committed by GitHub
commit 0a7a6b6b50
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -188,7 +188,7 @@ check_args() {
exit 1
fi
;;
email) if ! echo $arg | grep -E ^[-_\.[:alnum:]]+@[-_\.[:alnum:]]+ 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