1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-08 14:35:40 -04:00

emergency will robinson! emergency!

bug in regex
This commit is contained in:
Ryan Voots 2010-03-13 22:57:56 -05:00
parent 7bbfab023e
commit 149f875d72

View file

@ -177,7 +177,7 @@ sub store_factoid {
my( $self, $said) =@_;
my ($author, $body ) = ($said->{name}, $said->{body});
return unless $body =~ /^(?:no[, ]?)\s*(.+?)\s+($COPULA_RE)\s+(.+)$/s;
return unless $body =~ /^(?:no[, ]?)?\s*(.+?)\s+($COPULA_RE)\s+(.+)$/s;
my( $subject, $copula, $predicate ) = ($1,$2,$3);
my $compose_macro = 0;