1
0
Fork 0
mirror of https://github.com/perlbot/perlbuut synced 2025-06-07 22:35:43 -04:00

more space trimming

This commit is contained in:
Ryan Voots 2010-10-05 00:32:53 -04:00
parent ec37fa7c0a
commit 9eeb9ec950

View file

@ -40,7 +40,7 @@ sub {
@a = split(/(?:\bor\b|\s*,\s*)/, $said->{body});
}
s/^\s*//, s/\s*\?\s*$// for @a; #trim them up
s/^\s*//, s/\s*(\?\s*)?$// for @a; #trim them up
$common = $findcommon->(@a);
s/^$common// for @a; # remove the common stuff for grammar