mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-02-25 10:28:39 +00:00
Update strings/is_valid_email_address.py
Co-authored-by: Tianyi Zheng <tianyizheng02@gmail.com>
This commit is contained in:
parent
15c5482931
commit
09fc6e8cb3
@ -88,7 +88,7 @@ def is_valid_email_address(email: str) -> bool:
|
|||||||
):
|
):
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# (4.) Validate the placement of "." characters
|
# (4.) Validate the placement of "." characters in the local-part
|
||||||
if (
|
if (
|
||||||
local_part.startswith(".")
|
local_part.startswith(".")
|
||||||
or local_part.endswith(".")
|
or local_part.endswith(".")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user