Remove leading and trailing spaces and tabs
This commit is contained in:
parent
1a9e663b20
commit
a510e9e4fc
@ -10,6 +10,8 @@ while(<STDIN>) {
|
|||||||
if (/ - /) {
|
if (/ - /) {
|
||||||
s/ - .*//;
|
s/ - .*//;
|
||||||
s/,[ \t]+/,/g;
|
s/,[ \t]+/,/g;
|
||||||
|
s/^[ \t]+//g;
|
||||||
|
s/[ \t]+$//g;
|
||||||
push @words, split ',';
|
push @words, split ',';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user