From 0958e9dde13c3ee73f37c6d4f1e5cc1bdfcb2d39 Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 26 May 2004 21:11:54 +0000 Subject: [PATCH] fixed regex --- includes/Parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); -- 2.20.1