Skip to content

Commit

Permalink
change slug regex to require at least one character in the slug
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkandersson committed Jan 23, 2023
1 parent 468def8 commit 8671978
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/integration/test_discourse.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
pytestmark = pytest.mark.discourse


SLUG_REGEX = r"\/t\/[\w-]*\/"
SLUG_REGEX = r"\/t\/[\w-]+\/"


def change_url_slug(url: str, new_slug: str) -> str:
Expand Down

0 comments on commit 8671978

Please sign in to comment.