Skip to content

Commit ebad433

Browse files
committed
Add support for BIG SOLIDUS unicode characters for off topic names
We must add support for all B I G S O L I D U S. This is necessary.
1 parent 872201b commit ebad433

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Generated by Django 3.1.14 on 2022-04-21 23:29
2+
3+
import django.core.validators
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('api', '0081_bumpedthread'),
11+
]
12+
13+
operations = [
14+
migrations.AlterField(
15+
model_name='offtopicchannelname',
16+
name='name',
17+
field=models.CharField(help_text='The actual channel name that will be used on our Discord server.', max_length=96, primary_key=True, serialize=False, validators=[django.core.validators.RegexValidator(regex="^[a-z0-9\\U0001d5a0-\\U0001d5b9-ǃ?’'<>⧹⧸]+$")]),
18+
),
19+
]

pydis_site/apps/api/models/bot/off_topic_channel_name.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class OffTopicChannelName(ModelReprMixin, models.Model):
1111
primary_key=True,
1212
max_length=96,
1313
validators=(
14-
RegexValidator(regex=r"^[a-z0-9\U0001d5a0-\U0001d5b9-ǃ?’'<>]+$"),
14+
RegexValidator(regex=r"^[a-z0-9\U0001d5a0-\U0001d5b9-ǃ?’'<>⧹⧸]+$"),
1515
),
1616
help_text="The actual channel name that will be used on our Discord server."
1717
)

0 commit comments

Comments
 (0)