Skip to content

Commit

Permalink
Improve email domain regex pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
MrThearMan committed Dec 18, 2023
1 parent eb1d1ae commit 380f9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/graphql/types/reservations/filtersets.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
from reservations.models import RecurringReservation, Reservation, User
from spaces.models import Unit

EMAIL_DOMAIN_PATTERN = re.compile(r"^@\w+[.\w]*$")
EMAIL_DOMAIN_PATTERN = re.compile(r"^@\w[.\w]{0,254}$")
"""
Matches email domains like:
- @email.com
Expand Down

0 comments on commit 380f9be

Please sign in to comment.