Skip to content

Commit b2f12ac

Browse files
authored
Merge pull request #595 from python-discord/add-more-supported-symbols-to-otn
Add LT and GT to supported otn chars
2 parents 59422be + 3cb0a6b commit b2f12ac

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.0.14 on 2021-09-27 20:38
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', '0072_doc_allow_blank_base_url'),
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)