Merge pull request #7104 from sahil28297/fix_email

fix: proxied 'validate_email_add'
This commit is contained in:
Chinmay Pai 2019-03-22 15:46:02 +05:30 committed by GitHub
commit 3c6b6dfcdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,6 +75,12 @@ def extract_email_id(email):
return email_id
def validate_email_add(email_str, throw=False):
"""
validate_email_add will be renamed to the validate_email_address in v12
"""
return validate_email_address(email_str, throw=False)
def validate_email_address(email_str, throw=False):
"""Validates the email string"""
email = email_str = (email_str or "").strip()