Update strings/is_valid_email_address.py

Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
Caeden Perelli-Harris 2023-08-10 15:14:21 +01:00 committed by GitHub
parent 15c5482931
commit 09fc6e8cb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -88,7 +88,7 @@ def is_valid_email_address(email: str) -> bool:
):
return False
# (4.) Validate the placement of "." characters
# (4.) Validate the placement of "." characters in the local-part
if (
local_part.startswith(".")
or local_part.endswith(".")