Skip to content

Commit

Permalink
update inc/wpsetup.inc
Browse files Browse the repository at this point in the history
fix the while loop to allow email domains with dashes/hyphens https://community.centminmod.com/posts/18142/
  • Loading branch information
centminmod committed Sep 8, 2015
1 parent e9bace4 commit d2e01b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/wpsetup.inc
Expand Up @@ -199,7 +199,7 @@ while [[ "$TESTEMAIL" = "" ]]; do
echo
echo "!! make sure email address is valid and typed correctly !!"
read -ep "Enter email address for Wordpress Installation: " WPADMINEMAIL
TESTEMAIL=$(echo "${WPADMINEMAIL}" | grep '^[a-zA-Z0-9._%+-]*@[a-zA-Z0-9]*[\.[a-zA-Z0-9]*]*[a-zA-Z0-9]$')
TESTEMAIL=$(echo "${WPADMINEMAIL}" | grep '^[a-zA-Z0-9._%+-]*@[a-zA-Z0-9-]*[\.[a-zA-Z0-9]*]*[a-zA-Z0-9]$')
echo
done

Expand Down

0 comments on commit d2e01b5

Please sign in to comment.