[med-svn] r517 - trunk/community/website

hanska-guest at alioth.debian.org hanska-guest at alioth.debian.org
Tue Oct 2 13:49:06 UTC 2007


Author: hanska-guest
Date: 2007-10-02 13:49:06 +0000 (Tue, 02 Oct 2007)
New Revision: 517

Modified:
   trunk/community/website/index.php
Log:
Fixing regex (it worked locally)


Modified: trunk/community/website/index.php
===================================================================
--- trunk/community/website/index.php	2007-10-02 13:46:59 UTC (rev 516)
+++ trunk/community/website/index.php	2007-10-02 13:49:06 UTC (rev 517)
@@ -70,10 +70,9 @@
 						// we show only the last 10 commits by default
 						for ($i = 0; $i < 9; $i++) {
 							$desc = html_entity_decode($rs["items"][$i]["description"]);
-							$desc = preg_replace("/\(^.* \)\(.*\)\(  ::.*\)/",
-									"$1<a href=\"http:\/\/alioth.debian.org\/users\/$2\">$2<\/a>$3",
+							$desc = preg_replace("/Commit by \([\w-]+\)\(  ::.*\)/",
+									"Commit by <a href=\"http:\/\/alioth.debian.org\/users\/$2\">$2<\/a>$3",
 									$desc);
-							\(^.* \)\(.*\)\(  ::.*\)/\1<a>\2<\/a>\3
 						?>
 				<tr>
 					<td><?=$rs["items"][$i]["pubDate"]?></td>




More information about the debian-med-commit mailing list