diff options
author | 2018-07-10 06:46:42 +0000 | |
---|---|---|
committer | 2018-07-10 06:46:42 +0000 | |
commit | a24b83857c7a9c0a8ed1e36701205ca6265fd362 (patch) | |
tree | 26549f1b27d1d9c5f7fd43ba4eb4c9fd56a45b6d /pysite | |
parent | Remove space from end of `JAMMERS_ROLE` id in constants.py (diff) | |
parent | Fix duplicate channel names in test. (diff) |
Merge branch 'fix-numbers-in-channel-names' into 'master'
Allow numbers in channel names
See merge request python-discord/projects/site!17
Diffstat (limited to 'pysite')
-rw-r--r-- | pysite/views/api/bot/off_topic_names.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pysite/views/api/bot/off_topic_names.py b/pysite/views/api/bot/off_topic_names.py index e0871067..f353ab02 100644 --- a/pysite/views/api/bot/off_topic_names.py +++ b/pysite/views/api/bot/off_topic_names.py @@ -13,7 +13,7 @@ POST_SCHEMA = Schema({ 'name': And( str, len, - lambda name: all(c.isalpha() or c == '-' for c in name), + lambda name: all(c.isalnum() or c == '-' for c in name), str.islower, lambda name: len(name) <= 96, error=( |