- edited description
Issue #12
resolved
Image links seem to not be correctly parsed if they include square brackets in their captions, especially in such a configuration as the following:
[[File:filename.jpg|thumb|[1]]]
Comments (6)
-
reporter -
reporter The regex on line 350 takes into account the presence of wikilinks (those in double square brackets):
$pattern_link = "\[\[\s*$pattern_file.*?(\[\[[^\]\[]+?\]\].*?)*\]\]" ;
Something like this should include single square bracket links (and plain text like
[1]
) as well:\[\[\s*$pattern_file(\[\[.*?\]\]|\[.*?\]|.*?)*\]\]
-
Can you please upload a pull request?
-
reporter @Steinsplitter: see pull request #3.
-
-
assigned issue to
-
assigned issue to
-
- changed status to resolved
- Log in to comment