From 4f5953eaf8b9da117e3d947eb55c7ace1ea3c3d8 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 23 Dec 2013 18:38:03 +0100 Subject: Fix spaces in stop names with fuzzy => 1 --- Changelog | 4 ++++ lib/Travel/Status/DE/URA.pm | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 23cb42e..32e9202 100644 --- a/Changelog +++ b/Changelog @@ -1,3 +1,7 @@ +git HEAD + + * Fix spaces in stop names with fuzzy => 1 + Travel::Status::DE::URA 0.01 - Sun Dec 22 2013 * Initial release diff --git a/lib/Travel/Status/DE/URA.pm b/lib/Travel/Status/DE/URA.pm index 2e66a13..5ca1bee 100644 --- a/lib/Travel/Status/DE/URA.pm +++ b/lib/Travel/Status/DE/URA.pm @@ -98,7 +98,7 @@ sub is_my_stop { my ( $self, $stop, $my_stop, $fuzzy ) = @_; if ($fuzzy) { - return ( $stop =~ m{ $my_stop }ix ? 1 : 0 ); + return ( $stop =~ m{$my_stop}i ? 1 : 0 ); } else { return ( $stop eq $my_stop ); -- cgit v1.2.3