diff options
Diffstat (limited to 'wee_slack.py')
-rw-r--r-- | wee_slack.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wee_slack.py b/wee_slack.py index cfcd3de..d088da0 100644 --- a/wee_slack.py +++ b/wee_slack.py @@ -2851,11 +2851,11 @@ def process_emoji_changed(message_json, eventrouter, **kwargs): ###### New module/global methods def render_formatting(text): - text = re.sub(r'(^| )\*([^*\n]+)\*([^a-zA-Z0-9_]|$)', + text = re.sub(r'(^| )\*([^*\n`]+)\*([^a-zA-Z0-9_]|$)', r'\1{}*\2*{}\3'.format(w.color(config.render_bold_as), w.color('-' + config.render_bold_as)), text) - text = re.sub(r'(^| )_([^_\n]+)_([^a-zA-Z0-9_]|$)', + text = re.sub(r'(^| )_([^_\n`]+)_([^a-zA-Z0-9_]|$)', r'\1{}_\2_{}\3'.format(w.color(config.render_italic_as), w.color('-' + config.render_italic_as)), text) |