mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-25 06:50: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:
parent
31988e74d1
commit
00136f05dd
1 changed files with 1 additions and 1 deletions
|
@ -418,7 +418,7 @@ final class PhabricatorAuditEditor
|
||||||
$message = $data->getCommitMessage();
|
$message = $data->getCommitMessage();
|
||||||
|
|
||||||
$matches = null;
|
$matches = null;
|
||||||
if (!preg_match('/^Auditors:\s*(.*)$/im', $message, $matches)) {
|
if (!preg_match('/^Auditors?:\s*(.*)$/im', $message, $matches)) {
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue