Merge commit 'ab0ba51'
このコミットが含まれているのは:
コミット
2a814c9816
|
@ -34,6 +34,7 @@ def get_approx_linespan(text):
|
||||||
def schema_to_emotes(schema):
|
def schema_to_emotes(schema):
|
||||||
emotes = []
|
emotes = []
|
||||||
for name, coords in schema.items():
|
for name, coords in schema.items():
|
||||||
|
assert emote['name'], 'emote names cannot be empty'
|
||||||
assert not re.search(r'\s', name), \
|
assert not re.search(r'\s', name), \
|
||||||
'whitespace is not allowed in emote names'
|
'whitespace is not allowed in emote names'
|
||||||
name_markup = escape(name)
|
name_markup = escape(name)
|
||||||
|
|
読み込み中…
新しいイシューから参照