diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-19 21:22:26 +0100 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2024-02-20 13:21:38 +0100 |
commit | 1b02ac44847570610a8696323adeb1c3c36ae187 (patch) | |
tree | 9540630b1e677afcd0f1c17391df93d320fd7ddc /slack/shared.py | |
parent | 23d41cfb9b70f2596436e27f69a8865efe32da8a (diff) | |
download | wee-slack-1b02ac44847570610a8696323adeb1c3c36ae187.tar.gz |
Add support for focus events (mouse/cursor mode)
Diffstat (limited to 'slack/shared.py')
-rw-r--r-- | slack/shared.py | 8 |
1 files changed, 8 insertions, 0 deletions
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<msg_id>\d+|\$[0-9a-z]{3,})" REACTION_CHANGE_REGEX_STRING = r"(?P<reaction_change>\+|-)" +EMOJI_CHAR_REGEX_STRING = "(?P<emoji_char>[\U00000080-\U0010ffff]+)" +EMOJI_NAME_REGEX_STRING = ( + ":(?P<emoji_name>[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): |