Fix region exclusion with multiple lines.

Added the 's' modifier so that the regex that detects not-to-be-linked
regions that span several lines (e.g., multiline <pre></pre> section).
This commit is contained in:
Daniel Kraus
2014-08-28 16:07:36 +02:00
parent 55776f7ea4
commit 2915c6c798

View File

@ -147,7 +147,7 @@
'style=".+?"|class=".+?"|' . // styles and classes (e.g. of wikitables)
'\[' . $urlPattern . '\s.+?\]|'. $urlPattern . '(?=\s|$)|' . // urls
'(?<=\b)\S+\@(?:\S+\.)+\S+(?=\b)' . // email addresses
')/i';
')/is';
// Build a blacklist of pages that are not supposed to be link
// targets. This includes the current page.