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:
dswitkin 2008-11-18 19:44:25 +00:00
parent 559c79e1cc
commit 919958c40f

View file

@ -47,7 +47,7 @@ final class AddressBookDoCoMoResultParser extends AbstractDoCoMoResultParser {
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 birthday = matchSingleDoCoMoPrefixedField("BDAY:", rawText, true);
@ -64,7 +64,7 @@ final class AddressBookDoCoMoResultParser extends AbstractDoCoMoResultParser {
return new AddressBookParsedResult(maybeWrap(name),
pronunciation,
phoneNumbers,
maybeWrap(email),
emails,
note,
address,
org,