Skip to content

Commit

Permalink
Disallow ending slug in dash or underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
froggleston committed Aug 12, 2024
1 parent df2472f commit de77158
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/workshop_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
HUMANTIME_PATTERN = r'((0?[1-9]|1[0-2]):[0-5]\d(am|pm)(-|to)(0?[1-9]|1[0-2]):[0-5]\d(am|pm))|((0?\d|1\d|2[0-3]):[0-5]\d(-|to)(0?\d|1\d|2[0-3]):[0-5]\d)'
EVENTBRITE_PATTERN = r'\d{9,10}'
URL_PATTERN = r'https?://.+'
SLUG_PATTERN = r'\d{4}-\d{2}-\d{2}-[A-z0-9\-\_]+'
SLUG_PATTERN = r'\d{4}-\d{2}-\d{2}-[A-z0-9\-\_]+[^-_]$'

# Defaults.
CARPENTRIES = ("dc", "swc", "lc", "cp")
Expand Down

0 comments on commit de77158

Please sign in to comment.