mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-10 08:52:39 +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:
parent
528589edc6
commit
6c44587717
1 changed files with 2 additions and 1 deletions
|
@ -229,7 +229,8 @@ final class PhabricatorIRCObjectNameHandler extends PhabricatorIRCHandler {
|
||||||
$text = $message->getMessageText();
|
$text = $message->getMessageText();
|
||||||
|
|
||||||
$matches = null;
|
$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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue