svn: SVNROOT/ commit-email.php

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

rasmus		Sun, 19 Jul 2009 16:05:55 +0000

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

Changed paths:
	U   SVNROOT/commit-email.php

Log:
Support #12345 as well


Modified: SVNROOT/commit-email.php
===================================================================
--- SVNROOT/commit-email.php	2009-07-19 16:05:08 UTC (rev 284369)
+++ SVNROOT/commit-email.php	2009-07-19 16:05:55 UTC (rev 284370)
@@ -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

--d549e0803a39efe230f8501e360ce00df651d055--