Handle ; separators in N vCard field

git-svn-id: https://zxing.googlecode.com/svn/trunk@2897 59b500cc-1b3d-0410-9834-0bbf25fbcc57
This commit is contained in:
srowen@gmail.com 2013-10-03 08:22:40 +00:00
parent 0b56d79d00
commit 6d7a77d73f

View file

@ -58,7 +58,7 @@ public final class VCardResultParser extends ResultParser {
List<List<String>> names = matchVCardPrefixedField("FN", rawText, true, false);
if (names == null) {
// If no display names found, look for regular name fields and format them
names = matchVCardPrefixedField("N", rawText, true, false);
names = matchVCardPrefixedField("N", rawText, true, true);
formatNames(names);
}
List<String> nicknameString = matchSingleVCardPrefixedField("NICKNAME", rawText, true, false);