summaryrefslogtreecommitdiff
path: root/lib/Travel/Status
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-09-22 17:13:25 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-09-22 17:13:25 +0200
commit38f3d2bcae2dd5ec6f7c09e3ed86868fb0c384ed (patch)
tree73942603f30b0ad3c86c88b283543cde72034290 /lib/Travel/Status
parentbce11bc1300169cba1f30453e32c3afa77c2baae (diff)
FEA: Fix "type" check
Diffstat (limited to 'lib/Travel/Status')
-rw-r--r--lib/Travel/Status/DE/EFA.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Travel/Status/DE/EFA.pm b/lib/Travel/Status/DE/EFA.pm
index 8774d59..122fcc7 100644
--- a/lib/Travel/Status/DE/EFA.pm
+++ b/lib/Travel/Status/DE/EFA.pm
@@ -149,7 +149,7 @@ sub new {
confess('You must specify a name');
}
if ( $opt{type}
- and not( $opt{type} =~ m{ ^ (?: stop stopID address poi ) $ }x ) )
+ and not( $opt{type} =~ m{ ^ (?: stop | stopID | address | poi ) $ }x ) )
{
confess('type must be stop, stopID, address, or poi');
}