Make "Dnn" and "Tnn" match case-insensitively in the "attach" dialog
Summary: These patterns are hard-coded, allow them to match case-insenstiviely. Test Plan: Typed "d3" and "D3", got the right object in the attach dialog. Reviewers: btrahan Reviewed By: btrahan CC: aran Maniphest Tasks: T1253 Differential Revision: https://secure.phabricator.com/D2511
This commit is contained in:
@@ -80,10 +80,10 @@ final class PhabricatorSearchSelectController
|
|||||||
$pattern = null;
|
$pattern = null;
|
||||||
switch ($this->type) {
|
switch ($this->type) {
|
||||||
case PhabricatorPHIDConstants::PHID_TYPE_TASK:
|
case PhabricatorPHIDConstants::PHID_TYPE_TASK:
|
||||||
$pattern = '/\bT(\d+)\b/';
|
$pattern = '/\bT(\d+)\b/i';
|
||||||
break;
|
break;
|
||||||
case PhabricatorPHIDConstants::PHID_TYPE_DREV:
|
case PhabricatorPHIDConstants::PHID_TYPE_DREV:
|
||||||
$pattern = '/\bD(\d+)\b/';
|
$pattern = '/\bD(\d+)\b/i';
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user