1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 16:55:42 -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,7 +36,11 @@ sub {
s/^\s*//, s/\s*(\?\s*)?$// for @a; #trim them up
$common = $findcommon->(@a);
s/^$common// for @a; # remove the common stuff for grammar
if ($common =~ /\s$/) #only remove if we end on whitespace
{
s/^$common// for @a; # remove the common stuff for grammar
}
}
else
{