From: Antoine Musso Date: Sat, 21 Aug 2004 19:59:43 +0000 (+0000) Subject: Reverting patch 1.246 made by Guillaume. It breaks things such as [[100]]. X-Git-Tag: 1.5.0alpha1~2267 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=9a3ae4a58e8f321736dc047805f68e565bea510e;p=lhc%2Fweb%2Fwiklou.git Reverting patch 1.246 made by Guillaume. It breaks things such as [[100]]. --- 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' => '
'