From 1b02ac44847570610a8696323adeb1c3c36ae187 Mon Sep 17 00:00:00 2001 From: Trygve Aaberge Date: Mon, 19 Feb 2024 21:22:26 +0100 Subject: Add support for focus events (mouse/cursor mode) --- slack/shared.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'slack/shared.py') diff --git a/slack/shared.py b/slack/shared.py index 0aea81e..b4094cb 100644 --- a/slack/shared.py +++ b/slack/shared.py @@ -17,6 +17,14 @@ WeechatCallbackReturnType = Union[int, str, Dict[str, str], None] MESSAGE_ID_REGEX_STRING = r"(?P\d+|\$[0-9a-z]{3,})" REACTION_CHANGE_REGEX_STRING = r"(?P\+|-)" +EMOJI_CHAR_REGEX_STRING = "(?P[\U00000080-\U0010ffff]+)" +EMOJI_NAME_REGEX_STRING = ( + ":(?P[a-z0-9_+-]+(?:::skin-tone-[2-6](?:-[2-6])?)?):" +) +EMOJI_CHAR_OR_NAME_REGEX_STRING = ( + f"(?:{EMOJI_CHAR_REGEX_STRING}|{EMOJI_NAME_REGEX_STRING})" +) + class Shared: def __init__(self): -- cgit