Merge pull request #7102 from scmmishra/hotfix

fix: Proxied `validate_email_add`
This commit is contained in:
Shivam Mishra 2019-03-22 15:18:56 +05:30 committed by GitHub
commit efa8263d2b
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()