From a70cf3f675018730995942c618644200a6083e90 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sun, 20 May 2012 13:51:43 -0700 Subject: [PATCH] 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 --- .../controller/select/PhabricatorSearchSelectController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/applications/search/controller/select/PhabricatorSearchSelectController.php b/src/applications/search/controller/select/PhabricatorSearchSelectController.php index 0f116d4659..b93e8a9e51 100644 --- a/src/applications/search/controller/select/PhabricatorSearchSelectController.php +++ b/src/applications/search/controller/select/PhabricatorSearchSelectController.php @@ -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; }