summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.pl b/index.pl
index 232a81c..3903dbe 100644
--- a/index.pl
+++ b/index.pl
@@ -260,11 +260,11 @@ sub get_filtered_departures {
my $results = $data->{results};
if ( $opt{filter_line} ) {
- my @lines = split( qr{,}, $opt{filter_line} );
+ my @lines = split( qr{,[[:space:]]*}, $opt{filter_line} );
@grep_line = map { qr{ ^ \Q$_\E }ix } @lines;
}
if ( $opt{filter_platform} ) {
- @grep_platform = split( qr{,}, $opt{filter_platform} );
+ @grep_platform = split( qr{,[[:space:]]*}, $opt{filter_platform} );
}
for my $d ( @{$results} ) {