Emotes: emotes must have non-empty names

このコミットが含まれているのは:
n9k 2022-07-20 07:36:06 +00:00
コミット ab0ba513bf
1個のファイルの変更1行の追加0行の削除

ファイルの表示

@ -34,6 +34,7 @@ def get_approx_linespan(text):
def schema_to_emotes(schema):
emotes = []
for name, coords in schema.items():
assert emote['name'], 'emote names cannot be empty'
assert not re.search(r'\s', name), \
'whitespace is not allowed in emote names'
name_markup = escape(name)