1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 00:42:41 +01:00

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:
epriestley 2012-05-20 13:51:43 -07:00
parent eb6041371b
commit a70cf3f675

View file

@ -80,10 +80,10 @@ final class PhabricatorSearchSelectController
$pattern = null;
switch ($this->type) {
case PhabricatorPHIDConstants::PHID_TYPE_TASK:
$pattern = '/\bT(\d+)\b/';
$pattern = '/\bT(\d+)\b/i';
break;
case PhabricatorPHIDConstants::PHID_TYPE_DREV:
$pattern = '/\bD(\d+)\b/';
$pattern = '/\bD(\d+)\b/i';
break;
}