fixed regex
authorGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 26 May 2004 21:11:54 +0000 (21:11 +0000)
committerGabriel Wicke <gwicke@users.mediawiki.org>
Wed, 26 May 2004 21:11:54 +0000 (21:11 +0000)
includes/Parser.php

index 807f544..283fc6f 100644 (file)
@@ -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 );