Skip to content

Commit

Permalink
optimize email regex (credits: @kevinbackhouse, fix: #372)
Browse files Browse the repository at this point in the history
  • Loading branch information
ziirish committed Sep 1, 2021
1 parent e1ab7e3 commit bab31e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flask_restx/inputs.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def my_type(value):


email_regex = re.compile(
r"^" "(?P<local>[^@]*[^@.])" r"@" r"(?P<server>[^@]+(?:\.[^@]+)*)" r"$",
r"^" "(?P<local>[^@]*[^@.])" r"@" r"(?P<server>[^@\.]+(?:\.[^@\.]+)*)" r"$",
re.IGNORECASE,
)

Expand Down

0 comments on commit bab31e0

Please sign in to comment.