mirror of
https://github.com/zxing/zxing.git
synced 2025-03-05 20:48:51 -08:00
Made a small change to allow discovery of multiple email addresses within a Docomo MECARD.
git-svn-id: https://zxing.googlecode.com/svn/trunk@720 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
parent
559c79e1cc
commit
919958c40f
|
@ -47,7 +47,7 @@ final class AddressBookDoCoMoResultParser extends AbstractDoCoMoResultParser {
|
||||||
String name = parseName(rawName[0]);
|
String name = parseName(rawName[0]);
|
||||||
String pronunciation = matchSingleDoCoMoPrefixedField("SOUND:", rawText, true);
|
String pronunciation = matchSingleDoCoMoPrefixedField("SOUND:", rawText, true);
|
||||||
String[] phoneNumbers = matchDoCoMoPrefixedField("TEL:", 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 note = matchSingleDoCoMoPrefixedField("NOTE:", rawText, false);
|
||||||
String address = matchSingleDoCoMoPrefixedField("ADR:", rawText, true);
|
String address = matchSingleDoCoMoPrefixedField("ADR:", rawText, true);
|
||||||
String birthday = matchSingleDoCoMoPrefixedField("BDAY:", rawText, true);
|
String birthday = matchSingleDoCoMoPrefixedField("BDAY:", rawText, true);
|
||||||
|
@ -64,7 +64,7 @@ final class AddressBookDoCoMoResultParser extends AbstractDoCoMoResultParser {
|
||||||
return new AddressBookParsedResult(maybeWrap(name),
|
return new AddressBookParsedResult(maybeWrap(name),
|
||||||
pronunciation,
|
pronunciation,
|
||||||
phoneNumbers,
|
phoneNumbers,
|
||||||
maybeWrap(email),
|
emails,
|
||||||
note,
|
note,
|
||||||
address,
|
address,
|
||||||
org,
|
org,
|
||||||
|
|
Loading…
Reference in a new issue