1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

Allow adding Auditors with the singular noun.

Summary: Currently adding auditors in commit message only works with the plural. Make "Auditor: bla" work.

Test Plan: Unit tests. I don't know if I am supposed to add a test.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: joshuaspence, epriestley

Differential Revision: https://secure.phabricator.com/D10636
This commit is contained in:
epriestley 2015-05-17 07:18:44 -07:00
parent 31988e74d1
commit 00136f05dd

View file

@ -418,7 +418,7 @@ final class PhabricatorAuditEditor
$message = $data->getCommitMessage();
$matches = null;
if (!preg_match('/^Auditors:\s*(.*)$/im', $message, $matches)) {
if (!preg_match('/^Auditors?:\s*(.*)$/im', $message, $matches)) {
return array();
}