Small pattern fix

This commit is contained in:
Dan 2018-05-10 15:11:13 +02:00
parent efeade88c1
commit d41464e12e

View File

@ -36,7 +36,7 @@ class Markdown:
CODE_DELIMITER = "`"
PRE_DELIMITER = "```"
MARKDOWN_RE = re.compile(r"```([\w\W]*)(?:\n|)```|\[(.+?)\]\((.+?)\)|({d})(.+?)\4".format(
MARKDOWN_RE = re.compile(r"```([\w\W]*)(?:\n|)```|\[([^[]+?)\]\(([^(]+?)\)|({d})(.+?)\4".format(
d="|".join(
["".join(i) for i in [
["\{}".format(j) for j in i]