Skip to content

Commit

Permalink
Update email regex
Browse files Browse the repository at this point in the history
Co-authored-by: Hpar <[email protected]>
  • Loading branch information
florian-dacosta and hparfr authored May 24, 2024
1 parent aa1f9df commit 01d9325
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion roulier/carriers/laposte_fr/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
Expand Down

0 comments on commit 01d9325

Please sign in to comment.