From 7eb241896fd742c40fc0a29d249ea0e4f944928d Mon Sep 17 00:00:00 2001 From: dms Date: Fri, 11 Aug 2000 13:28:07 +0000 Subject: [PATCH] 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 --- blootbot/src/Factoids/Update.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5