From 0a486b4b4855db4d728e59a1df49a169a35db474 Mon Sep 17 00:00:00 2001 From: Roy Du Date: Fri, 20 Oct 2023 20:47:53 -0400 Subject: [PATCH] Fix limited email comprehensibility (#48) --- app/bot/helper/plexhelper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/bot/helper/plexhelper.py b/app/bot/helper/plexhelper.py index 2ac286e..4af3d07 100644 --- a/app/bot/helper/plexhelper.py +++ b/app/bot/helper/plexhelper.py @@ -44,6 +44,6 @@ def plexremoveinvite(plex, plexname): return False ''' 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()) return match != None \ No newline at end of file