Use \w+ for inline text snippets

fixes not `!lenny?` not working
This commit is contained in:
udf 2018-05-27 11:20:22 +02:00 committed by GitHub
parent 3457db917f
commit b434a1ec8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ MATCHERS = [
(get_tag_parser('```', partial(MessageEntityPre, language=''))), (get_tag_parser('```', partial(MessageEntityPre, language=''))),
(get_tag_parser('`', MessageEntityCode)), (get_tag_parser('`', MessageEntityCode)),
(re.compile(r'([^/\w]|^)(/?(r/\w+))'), parse_subreddit), (re.compile(r'([^/\w]|^)(/?(r/\w+))'), parse_subreddit),
(re.compile(r'(!\S+)'), parse_snip) (re.compile(r'(!\w+)'), parse_snip)
] ]