зеркало из https://github.com/mozilla/pjs.git
in eager mode, it looks silly if we don't trim trailing dots.
This commit is contained in:
Родитель
d0e664d3a2
Коммит
c1ecf34acc
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче