From 6c445877174f92d17e398f12ed8e27dcfd43b398 Mon Sep 17 00:00:00 2001 From: KorvinSzanto Date: Sat, 25 Aug 2012 16:50:01 -0700 Subject: [PATCH] Fix "where is symbol" ircbot handler Summary: In my haste, I forgot a trailing ? Test Plan: Try both "Where is Derp?" and "Where in the world is Derp?" Reviewers: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D3387 --- .../daemon/irc/handler/PhabricatorIRCObjectNameHandler.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/infrastructure/daemon/irc/handler/PhabricatorIRCObjectNameHandler.php b/src/infrastructure/daemon/irc/handler/PhabricatorIRCObjectNameHandler.php index 6abcdaee74..e319484e7f 100644 --- a/src/infrastructure/daemon/irc/handler/PhabricatorIRCObjectNameHandler.php +++ b/src/infrastructure/daemon/irc/handler/PhabricatorIRCObjectNameHandler.php @@ -229,7 +229,8 @@ final class PhabricatorIRCObjectNameHandler extends PhabricatorIRCHandler { $text = $message->getMessageText(); $matches = null; - if (!preg_match('/where(?: in the world) is (\S+?)\?/i', $text, $matches)) { + if (!preg_match('/where(?: in the world)? is (\S+?)\?/i', + $text, $matches)) { return; }