Skip to content

Commit

Permalink
Fixes OrganizationSlug regex (#1565)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvilanova committed Aug 18, 2021
1 parent 0bf3bf7 commit 4a56c9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dispatch/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# pydantic type that limits the range of primary keys
PrimaryKey = conint(gt=0, lt=2147483647)
NameStr = constr(regex=r"^(?!\s*$).+", strip_whitespace=True, min_length=3)
OrganizationSlug = constr(regex=r"^[a-z0-9]+(?:-[a-z0-9]+)*$", min_length=3)
OrganizationSlug = constr(regex=r"^[a-z0-9]+(?:_[a-z0-9]+)*$", min_length=3)


# SQLAlchemy models...
Expand Down

0 comments on commit 4a56c9e

Please sign in to comment.