Skip to content

Commit

Permalink
#197 fixed instagram username regex (#206)
Browse files Browse the repository at this point in the history
In instagram user name only underscores and punctuations is allowed,
removed minus sign from the regex and tested in onlineregex editor
  • Loading branch information
deawer234 authored Sep 24, 2023
2 parents 5d61ec5 + 22d5807 commit e9bd2c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fiesta/apps/accounts/models/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ class Gender(TextChoices):
)
instagram = models.CharField(
verbose_name=_("instagram username"),
validators=[RegexValidator(r"^[\w_-.]+$")],
validators=[RegexValidator(r"^[\w_.]+$")],
blank=True,
)
telegram = models.CharField(
Expand Down

0 comments on commit e9bd2c2

Please sign in to comment.