From: Gabriel Wicke Date: Wed, 26 May 2004 21:11:54 +0000 (+0000) Subject: fixed regex X-Git-Tag: 1.5.0alpha1~3197 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=0958e9dde13c3ee73f37c6d4f1e5cc1bdfcb2d39;p=lhc%2Fweb%2Fwiklou.git fixed regex --- diff --git a/includes/Parser.php b/includes/Parser.php index 807f5448a3..283fc6f6da 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -1220,7 +1220,7 @@ class Parser } # Double brace substitution - $regex = "/(\\n?){{([$titleChars]*?({{[$titleChars]+}})?)(\\|.*?|)}}/s"; + $regex = "/(\\n?){{([$titleChars{}_]*)(\\|.*?|)}}/s"; $text = preg_replace_callback( $regex, "wfBraceSubstitution", $text ); array_pop( $this->mArgStack );