mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Now we can support BDAY in DoCoMo MECARD format
git-svn-id: https://zxing.googlecode.com/svn/trunk@493 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
295319a685
commit
d392d57c67
|
@ -44,13 +44,17 @@ public final class AddressBookDoCoMoResultParser extends AbstractDoCoMoResultPar
|
|||
String email = matchSinglePrefixedField("EMAIL:", rawText);
|
||||
String note = matchSinglePrefixedField("NOTE:", rawText);
|
||||
String address = matchSinglePrefixedField("ADR:", rawText);
|
||||
String birthday = matchSinglePrefixedField("BDAY:", rawText);
|
||||
if (birthday != null && !isStringOfDigits(birthday, 8)) {
|
||||
return null;
|
||||
}
|
||||
return new AddressBookParsedResult(new String[] {name},
|
||||
phoneNumbers,
|
||||
new String[] {email},
|
||||
note,
|
||||
address,
|
||||
null,
|
||||
null,
|
||||
birthday,
|
||||
null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue