1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 16:45:40 -04:00

making it more flexible

This commit is contained in:
Ryan Voots 2010-09-21 13:35:29 -04:00
parent f4d7eddc3e
commit f894a1f744

View file

@ -608,7 +608,7 @@ sub basic_get_fact {
}
}
else {
if ($subject =~ /\?$/) #check if some asshole decided to add a ? at the end of the factoid, if so remove it and recurse, this should only be able to recurse N times so it should be fine
if ($subject =~ /[\?\.\!]$/) #check if some asshole decided to add a ? at the end of the factoid, if so remove it and recurse, this should only be able to recurse N times so it should be fine
{
my $newsubject = $subject;
$newsubject =~ s/\?$//;