From: dms Date: Fri, 11 Aug 2000 13:28:07 +0000 (+0000) Subject: closed 17031 -- Fix up appending to factoids X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7eb241896fd742c40fc0a29d249ea0e4f944928d;p=infobot.git closed 17031 -- Fix up appending to factoids git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@36 c11ca15a-4712-0410-83d8-924469b57eb5 --- diff --git a/blootbot/src/Factoids/Update.pl b/blootbot/src/Factoids/Update.pl index de6cfa7..692d48d 100644 --- a/blootbot/src/Factoids/Update.pl +++ b/blootbot/src/Factoids/Update.pl @@ -78,9 +78,11 @@ sub update { &status("orig factoid already had trailing symbol; not adding period."); $rhs = $exists." ".$rhs; } - } elsif ($exists =~ /\,\s*$/) { + } elsif ($exists =~ /[\,\.\-]\s*$/) { + &VERB("U: current has trailing symbols; inserting whitespace + new.",2); $rhs = $exists." ".$rhs; } elsif ($rhs =~ /^\./) { + &VERB("U: new text has ^.; appending directly",2); $rhs = $exists.$rhs; } else { $rhs = $exists.', or '.$rhs;