Remove leading and trailing spaces and tabs
This commit is contained in:
parent
1a9e663b20
commit
a510e9e4fc
1 changed files with 2 additions and 0 deletions
|
@ -10,6 +10,8 @@ while(<STDIN>) {
|
|||
if (/ - /) {
|
||||
s/ - .*//;
|
||||
s/,[ \t]+/,/g;
|
||||
s/^[ \t]+//g;
|
||||
s/[ \t]+$//g;
|
||||
push @words, split ',';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue