1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-08 07:55:44 -04:00

fixed the common code, make it only work if we end in a whitespace

This commit is contained in:
Ryan Voots 2010-10-05 13:41:21 -04:00
parent f74c951fbe
commit 063180ec23

View file

@ -36,8 +36,12 @@ sub {
s/^\s*//, s/\s*(\?\s*)?$// for @a; #trim them up s/^\s*//, s/\s*(\?\s*)?$// for @a; #trim them up
$common = $findcommon->(@a); $common = $findcommon->(@a);
if ($common =~ /\s$/) #only remove if we end on whitespace
{
s/^$common// for @a; # remove the common stuff for grammar s/^$common// for @a; # remove the common stuff for grammar
} }
}
else else
{ {
@a=("Outlook good", @a=("Outlook good",