RED-3243: Fixed bug in combining address parts
This commit is contained in:
parent
726c272e61
commit
6a78d79891
@ -97,6 +97,8 @@ public class Section {
|
|||||||
if(entity.getType().equals(startType) && start == -1) {
|
if(entity.getType().equals(startType) && start == -1) {
|
||||||
lastEnd = entity.getEnd();
|
lastEnd = entity.getEnd();
|
||||||
start = entity.getStart();
|
start = entity.getStart();
|
||||||
|
foundParts.add(entity.getType());
|
||||||
|
numberOfMatchParts++;
|
||||||
} else if(!allowDuplicateTypes && foundParts.contains(entity.getType())){
|
} else if(!allowDuplicateTypes && foundParts.contains(entity.getType())){
|
||||||
if(numberOfMatchParts >= minPartMatches) {
|
if(numberOfMatchParts >= minPartMatches) {
|
||||||
String value = searchText.substring(start, lastEnd);
|
String value = searchText.substring(start, lastEnd);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user