String name = parseName(rawName[0]);
String pronunciation = matchSingleDoCoMoPrefixedField("SOUND:", rawText, true);
String[] phoneNumbers = matchDoCoMoPrefixedField("TEL:", rawText, true);
- String email = matchSingleDoCoMoPrefixedField("EMAIL:", rawText, true);
+ String[] emails = matchDoCoMoPrefixedField("EMAIL:", rawText, true);
String note = matchSingleDoCoMoPrefixedField("NOTE:", rawText, false);
- String address = matchSingleDoCoMoPrefixedField("ADR:", rawText, true);
+ String[] addresses = matchDoCoMoPrefixedField("ADR:", rawText, true);
String birthday = matchSingleDoCoMoPrefixedField("BDAY:", rawText, true);
if (birthday != null && !isStringOfDigits(birthday, 8)) {
// No reason to throw out the whole card because the birthday is formatted wrong.
return new AddressBookParsedResult(maybeWrap(name),
pronunciation,
phoneNumbers,
- maybeWrap(email),
+ emails,
note,
- address,
+ addresses,
org,
birthday,
null,