Added novelty Where in the world is Symbol? match to IRCbot.
Summary: Added match to the novel statement: Where in the world is derp? Test Plan: Say something like "Where in the world is CarmenSandiego?" Reviewers: epriestley CC: aran Differential Revision: https://secure.phabricator.com/D3318
This commit is contained in:
@@ -229,7 +229,7 @@ final class PhabricatorIRCObjectNameHandler extends PhabricatorIRCHandler {
|
||||
$text = $message->getMessageText();
|
||||
|
||||
$matches = null;
|
||||
if (!preg_match('/where is (\S+?)\?/i', $text, $matches)) {
|
||||
if (!preg_match('/where(?: in the world) is (\S+?)\?/i', $text, $matches)) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user