From 03d7b0467c4b81925279701d478c0fdbf99fe139 Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Sat, 5 Nov 2016 07:36:58 +0100 Subject: [PATCH] Remove u flag from regexes. - FIX: Prevent unicode compilation errors. Closes #5. --- includes/LinkTitles_Extension.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/LinkTitles_Extension.php b/includes/LinkTitles_Extension.php index 8471397..88259e1 100644 --- a/includes/LinkTitles_Extension.php +++ b/includes/LinkTitles_Extension.php @@ -172,7 +172,7 @@ class Extension { } $regex = '/(?= 0 ) && ( $count > 0 )) { break; @@ -364,8 +364,7 @@ private static function BuildDelimiters() { // Use unicode character properties rather than \b escape sequences // to detect whole words containing non-ASCII characters as well. - // Note that this requires the use of the '/u' switch, and you need - // to have PHP with a PCRE library that was compiled with + // Note that this requires a PCRE library that was compiled with // --enable-unicode-properties ( $wgLinkTitlesWordStartOnly ) ? self::$wordStartDelim = '(?