Unverified Commit 452307e9 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

hafas stationboard: quote city name in regex (fixes bug with "()" etc.)

parent efe3e691
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1656,11 +1656,11 @@ sub handle_result {
						train_no   => $result->number,
						journey_id => $result->id,
						via        => [
							map { $_->{name} =~ s{,$city}{}r }
							map { $_->{name} =~ s{,\Q$city\E}{}r }
							  $result->route_interesting(3)
						],
						destination => $result->route_end =~ s{,$city}{}r,
						origin      => $result->route_end =~ s{,$city}{}r,
						destination => $result->route_end =~ s{,\Q$city\E}{}r,
						origin      => $result->route_end =~ s{,\Q$city\E}{}r,
						platform           => $result->platform,
						scheduled_platform => $result->sched_platform,
						info               => $info,