Small improvement

This commit is contained in:
M66B 2021-06-09 17:12:14 +02:00
parent 9ff5107d34
commit e7550d12b4
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ public class EntityAnswer implements Serializable {
last = fullName.substring(0, c).trim(); last = fullName.substring(0, c).trim();
first = fullName.substring(c + 1).trim(); first = fullName.substring(c + 1).trim();
} else { } else {
c = fullName.lastIndexOf(' '); c = fullName.indexOf(' ');
if (c > 0) { if (c > 0) {
first = fullName.substring(0, c).trim(); first = fullName.substring(0, c).trim();
last = fullName.substring(c + 1).trim(); last = fullName.substring(c + 1).trim();