From b434a1ec8f4e447e035321b0cdb10e85666226fd Mon Sep 17 00:00:00 2001 From: udf Date: Sun, 27 May 2018 11:20:22 +0200 Subject: [PATCH] Use \w+ for inline text snippets fixes not `!lenny?` not working --- stdplugins/markdown.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdplugins/markdown.py b/stdplugins/markdown.py index 285149e..fb79638 100644 --- a/stdplugins/markdown.py +++ b/stdplugins/markdown.py @@ -66,7 +66,7 @@ MATCHERS = [ (get_tag_parser('```', partial(MessageEntityPre, language=''))), (get_tag_parser('`', MessageEntityCode)), (re.compile(r'([^/\w]|^)(/?(r/\w+))'), parse_subreddit), - (re.compile(r'(!\S+)'), parse_snip) + (re.compile(r'(!\w+)'), parse_snip) ]