From 9a3ae4a58e8f321736dc047805f68e565bea510e Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 21 Aug 2004 19:59:43 +0000 Subject: [PATCH] Reverting patch 1.246 made by Guillaume. It breaks things such as [[100]]. --- includes/Parser.php | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/includes/Parser.php b/includes/Parser.php index 4af863313e..05be44f519 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -128,10 +128,9 @@ class Parser $fixtags = array( # french spaces, last one Guillemet-left # only if there is something before the space - '/ (?=\\?|:|;|!|\\302\\273)/' => ' \\1', - '/(\d) (?=\d{3}\D)/' => '\\1 \\2', + '/(.) (?=\\?|:|;|!|\\302\\273)/i' => '\\1 \\2', # french spaces, Guillemet-right - "/(\\302\\253) /"=>"\\1 ", + "/(\\302\\253) /i"=>"\\1 ", '/
/i' => '
', '/
/i' => '
', '/
/i' => '
', @@ -144,10 +143,9 @@ class Parser } else { $fixtags = array( # french spaces, last one Guillemet-left - '/ (?=\\?|:|;|!|\\302\\273)/' => ' \\1', - '/(\d) (?=\d{3}\D)/' => '\\1 \\2', + '/ (\\?|:|;|!|\\302\\273)/i' => ' \\1', # french spaces, Guillemet-right - '/(\\302\\253) /' => '\\1 ', + '/(\\302\\253) /i' => '\\1 ', '/([^> ]+(0(1|3|9);)[^< ]*)/i' => '\\1', '/
/i' => '
', '/<\\/center *>/i' => '
' -- 2.20.1