summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--index.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/index.pl b/index.pl
index c3da8c7..7bf6e5f 100644
--- a/index.pl
+++ b/index.pl
@@ -459,7 +459,7 @@ sub handle_request {
}
for my $result (@results) {
- my $platform = ( split( / /, $result->platform ) )[0];
+ my $platform = ( split( qr{ }, $result->platform // '' ) )[0];
my $line = $result->line;
my $train_type = $result->type;
my $delay = $result->delay;