diff options
author | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-20 00:05:35 +0200 |
---|---|---|
committer | Trygve Aaberge <trygveaa@gmail.com> | 2020-04-20 00:05:35 +0200 |
commit | ec07d6265c46f3587bb0c0fb1540374a8f587832 (patch) | |
tree | b3c7d90b674da58432197af58c8ca4d6447bbb6e /wee_slack.py | |
parent | be5d8906ed994b58416a330d7ccb987673d38674 (diff) | |
download | wee-slack-ec07d6265c46f3587bb0c0fb1540374a8f587832.tar.gz |
Fix bug preventing editing message without any identifier
This was broken in the previous commit, be5d890.
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wee_slack.py b/wee_slack.py index 6eeb01a..33408fa 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -836,7 +836,7 @@ def buffer_input_callback(signal, buffer_ptr, data): return int(message_id) reaction = re.match(r"{}{}\s*$".format(REACTION_PREFIX_REGEX_STRING, EMOJI_CHAR_OR_NAME_REGEX_STRING), data) - substitute = re.match("{}s/".format(MESSAGE_ID_REGEX_STRING), data) + substitute = re.match("{}?s/".format(MESSAGE_ID_REGEX_STRING), data) if reaction: emoji = reaction.group("emoji_char") or reaction.group("emoji_name") if reaction.group("reaction_change") == "+": |