From 63e8b08a2901146425ef74f1b3dc0ec91750a72c Mon Sep 17 00:00:00 2001 From: PaulStets Date: Sat, 16 Sep 2017 14:44:19 +0300 Subject: [PATCH] Fixes according to review --- OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java b/OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java index 2f04d4bae7..e0eac2a796 100644 --- a/OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java +++ b/OsmAnd-java/src/net/osmand/search/core/SearchPhrase.java @@ -587,7 +587,7 @@ public class SearchPhrase { Iterator it = indexes.iterator(); while (it.hasNext()) { BinaryMapIndexReader r = it.next(); - if (r.getFile().getName().matches("[a-zA-Z_-]+([0-9]+_*){3}[.a-z]+")) { + if (r.getFile().getName().matches(".*([0-9]+_*){3}\\.obf")) { String currRegionName = r.getRegionName(); if (result.containsKey(currRegionName)) { result.get(currRegionName).add(r);