Small improvement

pull/162/head
M66B 5 years ago
parent 17b90fccd8
commit 9e04411d32

@ -76,11 +76,15 @@ public class EntityAnswer implements Serializable {
name = name.trim(); name = name.trim();
int c = name.lastIndexOf(","); int c = name.lastIndexOf(",");
if (c < 0) { if (c < 0) {
first = name; c = name.lastIndexOf(" ");
last = name; if (c < 0) {
first = name;
last = name;
} else {
first = name.substring(0, c).trim();
last = name.substring(c + 1).trim();
}
} else { } else {
first = name.substring(c + 1).trim();
last = name.substring(0, c).trim();
} }
} }

Loading…
Cancel
Save