RED-3243: Fixed bug in combining address parts

This commit is contained in:
deiflaender 2022-01-24 12:35:38 +01:00
parent 726c272e61
commit 6a78d79891

View File

@ -97,6 +97,8 @@ public class Section {
if(entity.getType().equals(startType) && start == -1) {
lastEnd = entity.getEnd();
start = entity.getStart();
foundParts.add(entity.getType());
numberOfMatchParts++;
} else if(!allowDuplicateTypes && foundParts.contains(entity.getType())){
if(numberOfMatchParts >= minPartMatches) {
String value = searchText.substring(start, lastEnd);