diff options
author | Brion Vibber <brion@users.mediawiki.org> | 2006-06-06 08:59:02 +0000 |
---|---|---|
committer | Brion Vibber <brion@users.mediawiki.org> | 2006-06-06 08:59:02 +0000 |
commit | b5474072b71fb598878757397c6d0236d56bc004 (patch) | |
tree | bc3e7730bc85ba4ef5ceb554954027537297d94e | |
parent | d6b9ef045dd81e618153bf277dd280dc29a0d324 (diff) |
And one more little backport, fixing broken extra junk on heading lines1.6.7
Notes
http://mediawiki.org/wiki/Special:Code/MediaWiki/14589
-rw-r--r-- | includes/Parser.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/Parser.php b/includes/Parser.php index 2bc24450c56f..89b6dfa682cd 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -874,7 +874,7 @@ class Parser wfProfileIn( $fname ); for ( $i = 6; $i >= 1; --$i ) { $h = str_repeat( '=', $i ); - $text = preg_replace( "/^{$h}(.+){$h}(\\s|$)/m", + $text = preg_replace( "/^{$h}(.+){$h}\\s*$/m", "<h{$i}>\\1</h{$i}>\\2", $text ); } wfProfileOut( $fname ); |