http://www.mediawiki.org/wiki/Special:Code/MediaWiki/70050
Revision: 70050
Author: maxsem
Date: 2010-07-27 22:01:01 +0000 (Tue, 27 Jul 2010)
Log Message:
-----------
stylize.php: fixed instances of "##foo" being changed to "# #foo" instead of
"## foo"
Modified Paths:
--------------
trunk/tools/code-utils/stylize.php
Modified: trunk/tools/code-utils/stylize.php
===================================================================
--- trunk/tools/code-utils/stylize.php 2010-07-27 21:53:52 UTC (rev 70049)
+++ trunk/tools/code-utils/stylize.php 2010-07-27 22:01:01 UTC (rev 70050)
@@ -293,7 +293,7 @@
function fixComment( $s ) {
// Fix single-line comments with no leading whitespace
- if ( preg_match( '!^(#|//)(\S.*)$!s', $s, $m ) ) {
+ if ( preg_match( '!^(#+|//+)(\S.*)$!s', $s, $m ) ) {
$s = $m[1] . ' ' . $m[2];
}
return $s;
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs