Fix email validation

pull/3/head
Dave Page 2016-06-30 09:46:06 +01:00
parent 0282ef7992
commit 71443deceb
1 changed files with 1 additions and 2 deletions

View File

@ -59,8 +59,7 @@ account:\n""")
"(?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9]"
"(?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$")
email = ''
input("Email address: ")
email = input("Email address: ")
while email == '' or not email_filter.match(email):
print('Invalid email address. Please try again.')
email = input("Email address: ")