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

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
This commit is contained in:
KorvinSzanto 2012-08-25 16:50:01 -07:00
parent 528589edc6
commit 6c44587717

View file

@ -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;
}