r70050 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r70049‎ | r70050 | r70051 >
Date:22:01, 27 July 2010
Author:maxsem
Status:deferred
Tags:
Comment:
stylize.php: fixed instances of "##foo" being changed to "# #foo" instead of "## foo"
Modified paths:
  • /trunk/tools/code-utils/stylize.php (modified) (history)

Diff [purge]

Index: trunk/tools/code-utils/stylize.php
@@ -293,7 +293,7 @@
294294
295295 function fixComment( $s ) {
296296 // Fix single-line comments with no leading whitespace
297 - if ( preg_match( '!^(#|//)(\S.*)$!s', $s, $m ) ) {
 297+ if ( preg_match( '!^(#+|//+)(\S.*)$!s', $s, $m ) ) {
298298 $s = $m[1] . ' ' . $m[2];
299299 }
300300 return $s;

Status & tagging log