From d0c671634641c45458bcd6d7a44117d68c1efadd Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Mon, 6 Jun 2016 06:33:01 +0200 Subject: [PATCH] Use S flag in regular expressions. --- LinkTitles.body.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/LinkTitles.body.php b/LinkTitles.body.php index 64744a4..8cf208f 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -180,7 +180,7 @@ for ( $i = 0; $i < count( $arr ); $i+=2 ) { // even indexes will point to text that is not enclosed by brackets $arr[$i] = preg_replace_callback( '/(?= 0 ) && ( $count > 0 )) { break; @@ -198,7 +198,7 @@ // even indexes will point to text that is not enclosed by brackets $arr[$i] = preg_replace_callback( '/(?= 0 ) && ( $count > 0 )) { break; @@ -413,7 +413,7 @@ 'style=".+?"|class=".+?"|' . // styles and classes (e.g. of wikitables) '\[' . $urlPattern . '\s.+?\]|'. $urlPattern . '(?=\s|$)|' . // urls '(?<=\b)\S+\@(?:\S+\.)+\S+(?=\b)' . // email addresses - ')/ism'; + ')/ismS'; } }