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:
parent
f4d7eddc3e
commit
f894a1f744
1 changed files with 1 additions and 1 deletions
|
@ -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/\?$//;
|
||||
|
|
Loading…
Add table
Reference in a new issue