Normalize white space iCal

This commit is contained in:
M66B 2022-06-02 08:36:43 +02:00
parent e8ec62b492
commit f3f0a8c08c
1 changed files with 3 additions and 3 deletions

View File

@ -3418,7 +3418,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
for (Attendee a : event.getAttendees()) {
String email = a.getEmail();
if (!TextUtils.isEmpty(email)) {
email = email.replaceAll("\\r?\\n", "");
email = email.replaceAll("\\s+", "");
attendee.add(email);
}
}
@ -3522,9 +3522,9 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
at biweekly.ICalendar.write(SourceFile:2)
*/
if (!TextUtils.isEmpty(email))
email = email.replaceAll("\\r?\\n", "");
email = email.replaceAll("\\s+", "");
if (!TextUtils.isEmpty(name))
name = name.replaceAll("\\r?\\n", " ");
name = name.replaceAll("\\s+", " ");
Attendee attendee = new Attendee(name, email);