From 03a08db9037904c1dafe42394c33fbc907821b5f Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Tue, 3 Sep 2019 16:52:48 +0200 Subject: Allow special characters in off topic names. --- pydis_site/apps/api/models/bot/off_topic_channel_name.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'pydis_site/apps/api/models') diff --git a/pydis_site/apps/api/models/bot/off_topic_channel_name.py b/pydis_site/apps/api/models/bot/off_topic_channel_name.py index 0891f811..29280c27 100644 --- a/pydis_site/apps/api/models/bot/off_topic_channel_name.py +++ b/pydis_site/apps/api/models/bot/off_topic_channel_name.py @@ -10,7 +10,9 @@ class OffTopicChannelName(ModelReprMixin, models.Model): name = models.CharField( primary_key=True, max_length=96, - validators=(RegexValidator(regex=r'^[a-z0-9-]+$'),), + validators=( + RegexValidator(regex=r"^[a-z0-9\U0001d5a0-\U0001d5b9-ǃ?’']+$"), + ), help_text="The actual channel name that will be used on our Discord server." ) -- cgit v1.2.3