Fix limited email comprehensibility (#48)

This commit is contained in:
Roy Du
2023-10-20 20:47:53 -04:00
committed by GitHub
parent fab423b3e3
commit 0a486b4b48

View File

@@ -44,6 +44,6 @@ def plexremoveinvite(plex, plexname):
return False return False
''' '''
def verifyemail(addressToVerify): def verifyemail(addressToVerify):
regex = '^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,})$' regex = "(^[a-zA-Z0-9'_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)"
match = re.match(regex, addressToVerify.lower()) match = re.match(regex, addressToVerify.lower())
return match != None return match != None