From 01d9325b3b820db903ee7dafc43fc26e50dcbeca Mon Sep 17 00:00:00 2001 From: Florian Date: Fri, 24 May 2024 10:20:48 +0200 Subject: [PATCH] Update email regex Co-authored-by: Hpar --- roulier/carriers/laposte_fr/api.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roulier/carriers/laposte_fr/api.py b/roulier/carriers/laposte_fr/api.py index 737c0e6..027be3f 100644 --- a/roulier/carriers/laposte_fr/api.py +++ b/roulier/carriers/laposte_fr/api.py @@ -314,7 +314,8 @@ def _customs(self): }, "email": { "type": "string", - "regex": r"^\w*@\w*.\w*$", + # according to https://emailregex.com/ + "regex": r"(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)", "required": False, "maxlength": 80, },