From f6e113a8a3fb57b6ed3ca0972afb40344f2f2639 Mon Sep 17 00:00:00 2001 From: Harshit Bansal Date: Sun, 1 Oct 2017 13:53:53 +0000 Subject: [PATCH] emoji_setup_utils: Add 'get_extended_names_list()` function. --- tools/setup/emoji/emoji_setup_utils.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tools/setup/emoji/emoji_setup_utils.py b/tools/setup/emoji/emoji_setup_utils.py index 4dd67c1d1e..08db0fed55 100644 --- a/tools/setup/emoji/emoji_setup_utils.py +++ b/tools/setup/emoji/emoji_setup_utils.py @@ -287,3 +287,10 @@ def get_new_emoji_dicts(unified_reactions_data, emoji_data): if emoji_can_be_included(emoji_dict, unified_reactions_codepoints): new_emoji_dicts.append(emoji_dict) return new_emoji_dicts + +def get_extended_names_list(names, new_emoji_dicts): + # type: (List[Text], List[Dict[Text, Any]]) -> List[Text] + extended_names_list = names[:] + for emoji_dict in new_emoji_dicts: + extended_names_list.append(emoji_dict["short_name"]) + return extended_names_list