Fix #3166
This commit is contained in:
parent
b652687d37
commit
5f0eaeea99
1 changed files with 2 additions and 1 deletions
|
@ -531,7 +531,8 @@ public class SearchCoreFactory {
|
||||||
Iterator<Entry<String, PoiType>> it = translatedNames.entrySet().iterator();
|
Iterator<Entry<String, PoiType>> it = translatedNames.entrySet().iterator();
|
||||||
while (it.hasNext()) {
|
while (it.hasNext()) {
|
||||||
Entry<String, PoiType> e = it.next();
|
Entry<String, PoiType> e = it.next();
|
||||||
if (nm.matches(e.getKey()) || nm.matches(e.getValue().getTranslation())) {
|
if (e.getValue().getCategory() != types.getOtherMapCategory()
|
||||||
|
&& (nm.matches(e.getKey()) || nm.matches(e.getValue().getTranslation()))) {
|
||||||
results.put(e.getValue().getTranslation(), e.getValue());
|
results.put(e.getValue().getTranslation(), e.getValue());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue