Skip to content

Commit

Permalink
Fix extracting of markup links from string
Browse files Browse the repository at this point in the history
We can not match only on strin beginning.

Fixes #2573

Signed-off-by: Michal Čihař <[email protected]>
  • Loading branch information
nijel committed Feb 23, 2019
1 parent 181e1fc commit 0b3b1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion weblate/checks/markup.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
)

MD_LINK = re.compile(
r'^!?\[('
r'!?\[('
r'(?:\[[^^\]]*\]|[^\[\]]|\](?=[^\[]*\]))*'
r')\]\('
r'''\s*(<)?([\s\S]*?)(?(2)>)(?:\s+['"]([\s\S]*?)['"])?\s*'''
Expand Down

0 comments on commit 0b3b1ad

Please sign in to comment.