summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-12-23 18:38:03 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-12-23 18:38:03 +0100
commit4f5953eaf8b9da117e3d947eb55c7ace1ea3c3d8 (patch)
treef0184fccf5c811f69620e8d808bc0359e90a9869
parent2878dcd0299720ee8879435d8c85b9345fde4f1c (diff)
Fix spaces in stop names with fuzzy => 1
-rw-r--r--Changelog4
-rw-r--r--lib/Travel/Status/DE/URA.pm2
2 files changed, 5 insertions, 1 deletions
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 );