svn: SVNROOT/ commit-email.php

[email protected] (Rasmus Lerdorf) Sun, 19 Jul 09 00:46:14 +0000
Newsgroups php.cvs,svn.migration
Message-ID <[email protected]>
--ed93a70373ee61b68dc93400e064dce714e44f48
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

rasmus		Sun, 19 Jul 2009 00:46:14 +0000

URL: http://svn.php.net/viewvc?view=revision&revision=284341

Changed paths:
	U   SVNROOT/commit-email.php

Log:
Support "Bug: 12345" as well


Modified: SVNROOT/commit-email.php
===================================================================
--- SVNROOT/commit-email.php	2009-07-19 00:33:39 UTC (rev 284340)
+++ SVNROOT/commit-email.php	2009-07-19 00:46:14 UTC (rev 284341)
@@ -122,7 +122,7 @@
 $commit_date = strtotime(substr($commit_info[1], 0, strlen("0000-00-00 00:00:00 +0000")));
 $commit_log = implode("\n", array_slice($commit_info, 3));
 // Support bug#1234 bug url extraction
-$bugs = preg_match_all("/bug[\\s#]*([0-9]+)/i", $commit_log, $bugs_array);
+$bugs = preg_match_all("/bug[\\s#:]*([0-9]+)/i", $commit_log, $bugs_array);

 // -----------------------------------------------------------------------------------------------------------------------------
 // Determine "from" address

--ed93a70373ee61b68dc93400e064dce714e44f48--