From 2915c6c798dd05dc03f9117fb29b5215251d348d Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Thu, 28 Aug 2014 16:07:36 +0200 Subject: [PATCH] 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
 section).
---
 LinkTitles.body.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/LinkTitles.body.php b/LinkTitles.body.php
index a837eb3..f41c73c 100755
--- a/LinkTitles.body.php
+++ b/LinkTitles.body.php
@@ -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.