[Dehs-devel] r171 - trunk/www
Raphael Geissert
atomo64-guest at alioth.debian.org
Sun May 17 03:28:31 UTC 2009
Author: atomo64-guest
Date: 2009-05-17 03:28:30 +0000 (Sun, 17 May 2009)
New Revision: 171
Modified:
trunk/www/maintainer.php
Log:
Fix regex that removes non-comments lines so that it doesn't eat
a comments line if it is preceeded by a non-comments line
Modified: trunk/www/maintainer.php
===================================================================
--- trunk/www/maintainer.php 2009-04-04 19:00:00 UTC (rev 170)
+++ trunk/www/maintainer.php 2009-05-17 03:28:30 UTC (rev 171)
@@ -225,7 +225,7 @@
<? if ($key!="no_watch") {
$watch_comments = '';
if (!$res_array['up_version'] && isset($res_array['watch'])) {
- $watch_comments = trim(preg_replace('/^(\s*[^#]+.*$|\s*#)/m','',$res_array['watch']),"\n\r\0\x0B");
+ $watch_comments = trim(preg_replace('/^(\s*[^#].*$|\s*#)/m','',$res_array['watch']),"\n\r\0\x0B");
}
?>
<li><b>Watch: </b><a href="<? print "wwiz_detail.php?id=$res_array[id]&type=watch";?>">view</a><? if($watch_comments) echo " <small>(comments below)</small>"; ?></li>
More information about the Dehs-devel
mailing list