Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

generate_emoji_names: Fix use of stale aliases variable.

Anders Kaseorg4fe93d2523cf
diff --git a/tools/setup/emoji/generate_emoji_names b/tools/setup/emoji/generate_emoji_names
index f358c429b19..d4a265dd5d9 100755
--- a/tools/setup/emoji/generate_emoji_names
+++ b/tools/setup/emoji/generate_emoji_names
@@ -196,7 +196,7 @@ def main() -> None:
# These are known names where we don't have an ascii-only version and there are ascii aliases
# that a user can still enter instead to get the same emoji.
if name in ["ココ", "サ", "指", "空"]:
- assert any(alias.isascii() for alias in aliases)
+ assert any(alias.isascii() for alias in emoji_names["aliases"])
continue
if not name.isascii():
ascii_alias = convert_non_ascii_chars(name)