From 9df2f798486244a50617c2ecb1fb2edc72107147 Mon Sep 17 00:00:00 2001 From: Victor Shcherb Date: Thu, 11 Jun 2020 13:57:11 +0200 Subject: [PATCH] Fix matching --- .../main/java/net/osmand/search/core/SearchCoreFactory.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java b/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java index 90441f44cb..e7573cca4f 100644 --- a/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java +++ b/OsmAnd-java/src/main/java/net/osmand/search/core/SearchCoreFactory.java @@ -414,7 +414,8 @@ public class SearchCoreFactory { if (object.getName().startsWith("<")) { return false; } - if (!phrase.getFirstUnknownNameStringMatcher().matches(stripBraces(sr.localeName))) { + + if (!phrase.getUnknownWordToSearchBuildingNameMatcher().matches(stripBraces(sr.localeName))) { sr.priorityDistance = 5; } sr.objectType = ObjectType.STREET;