mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-01 12:44:42 +00:00
Normalize white space iCal
This commit is contained in:
parent
e8ec62b492
commit
f3f0a8c08c
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue