Fix markdown parse edge case

master
Lonami 2018-12-21 18:25:16 +00:00
parent c41792af6b
commit a254c113a7
1 changed files with 2 additions and 0 deletions

View File

@ -102,6 +102,8 @@ def parse(message, old_entities=None):
# Skip already existing entities if we're at one
if i == e.offset:
i += e.length
else:
after += 1
# Find the first pattern that matches
for pattern, parser in MATCHERS: