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:
parent
f74c951fbe
commit
063180ec23
1 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue