BEGIN:VCARD
VERSION:3.0
PRODID:-//Apple Inc.//iPhone OS 9.3//EN
N:Taylor;David;;;
FN: David Taylor
TEL;type=HOME;type=VOICE;type=pref:555-610-6679
item1.ADR;type=HOME;type=pref:;;1747 Steuart Street;Tiburon;CA;94920;USA
item1.X-ABADR:us
BDAY:1998-06-15
END:VCARD
'Right([7.6] error: `:' expected but . found
[error]
[error] item1.ADR;type=HOME;type=pref:;;1747 Steuart Street;Tiburon;CA;94920;USA
I took a look at the code, wrote some extra tests based on these Apple VCard instances and fixed it to the extent that I needed; the '.' is included in the permitted characters and the itemN. prefix is simply discarded.
This was consistent with the only other VCard parser that handled this format I could find source for, namely the node.js parser: https://github.com/jasperla/node-vcard/blob/master/vcard.js#L51
As mentioned in the subject line, I have this fixed and ready to pull - do I go ahead and open an issue or can I simply fire off the PR?
https://github.com/themillhousegroup/framework/tree/handle-apple-vcards
Regards and thanks for all the great work,
John
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Cheers,
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
--
Lift, the simply functional web framework: http://liftweb.net
Code: http://github.com/lift
Discussion: http://groups.google.com/group/liftweb
Stuck? Help us help you: https://www.assembla.com/wiki/show/liftweb/Posting_example_code
---
You received this message because you are subscribed to the Google Groups "Lift" group.
To unsubscribe from this group and stop receiving emails from it, send an email to liftweb+unsubscribe@googlegroups.com.