mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 11:55:20 +01:00
Small improvement
This commit is contained in:
@@ -71,6 +71,7 @@ public class EntityAnswer implements Serializable {
|
||||
}
|
||||
|
||||
if (fullName != null) {
|
||||
fullName = fullName.trim();
|
||||
if (fullName.startsWith("\""))
|
||||
fullName = fullName.substring(1);
|
||||
if (fullName.endsWith("\""))
|
||||
@@ -80,13 +81,12 @@ public class EntityAnswer implements Serializable {
|
||||
String first = fullName;
|
||||
String last = null;
|
||||
if (fullName != null) {
|
||||
fullName = fullName.trim();
|
||||
int c = fullName.lastIndexOf(",");
|
||||
int c = fullName.lastIndexOf(',');
|
||||
if (c > 0) {
|
||||
last = fullName.substring(0, c).trim();
|
||||
first = fullName.substring(c + 1).trim();
|
||||
} else {
|
||||
c = fullName.lastIndexOf(" ");
|
||||
c = fullName.lastIndexOf(' ');
|
||||
if (c > 0) {
|
||||
first = fullName.substring(0, c).trim();
|
||||
last = fullName.substring(c + 1).trim();
|
||||
|
||||
Reference in New Issue
Block a user