We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3fc566f + 68ec3b9 commit 8dbcd26Copy full SHA for 8dbcd26
commons/src/main/kotlin/org/fossify/commons/models/contacts/Contact.kt
@@ -173,7 +173,9 @@ data class Contact(
173
}
174
val lastPart = if (startWithSurname) firstMiddle else surname
175
val suffixComma = if (suffix.isEmpty()) "" else ", $suffix"
176
- val fullName = "$prefix $firstPart $lastPart$suffixComma".trim()
+ val fullName = listOfNotNull(prefix, firstPart, "$lastPart$suffixComma")
177
+ .filter { it.isNotBlank() }
178
+ .joinToString(" ")
179
val organization = getFullCompany()
180
val email = emails.firstOrNull()?.value?.trim()
181
val phoneNumber = phoneNumbers.firstOrNull()?.normalizedNumber
0 commit comments