summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/db-iris4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/db-iris b/bin/db-iris
index 2aa94b7..ecbf376 100755
--- a/bin/db-iris
+++ b/bin/db-iris
@@ -141,6 +141,10 @@ sub get_departure {
sub get_station {
my ($input_name) = @_;
+ if ( $input_name =~ m{ ^ [[:digit:]]+ $ }x ) {
+ return $input_name;
+ }
+
my @stations = Travel::Status::DE::IRIS::Stations::get_station($input_name);
if ( @stations == 0 ) {