X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=src%2FFactoids%2FStatement.pl;h=edd69cf179441edd25b31d6001a1bfa79746f734;hb=626da38d992b33bb84f6f697d13fff7215976f10;hp=ae0ffa4b6f78292d88c7d1909f08b75aab289212;hpb=3192b5c2d5d0f4218b2e4a41f81827bca445ee0c;p=infobot.git diff --git a/src/Factoids/Statement.pl b/src/Factoids/Statement.pl index ae0ffa4..edd69cf 100644 --- a/src/Factoids/Statement.pl +++ b/src/Factoids/Statement.pl @@ -55,6 +55,9 @@ sub doStatement { if ($in =~ /(^|\s)(is|are)(\s|$)/i) { my($lhs, $mhs, $rhs) = ($`, $&, $'); + # allows factoid arguments to be updated. -lear. + $lhs =~ s/^(CMD: )?(.*)/$1 . lc $2/e; + $lhs =~ tr/A-Z/a-z/; $lhs =~ s/^(the|da|an?)\s+//i; # discard article