in eager mode, it looks silly if we don't trim trailing dots.

This commit is contained in:
ian%hixie.ch 2004-01-26 22:03:03 +00:00
parent 4f2e5da122
commit c147440f3f

View File

@ -264,7 +264,7 @@ sub DoFactoidCheck {
$1, # subject
$direct || $self->{'ridiculouslyEagerToHelp'})
if ($3 or ($direct == 2 and $self->{'eagerToHelp'}));
} elsif ((not $direct or $direct == 2) and $shortMessage =~ /^(.+?)[?\s]*(\?)?[?\s]*$/osi) {
} elsif ((not $direct or $direct == 2) and $shortMessage =~ /^(.+?)[?!.\s]*(\?)?[?!.\s]*$/osi) {
$self->GiveFactoid($event,
undef, # is/are (optional)
$1, # subject