node-vcard
node-vcard copied to clipboard
Fixed a bug for you
My vards have ';' instead of ':'
I am getting adressbook from iphone...
it is a little sloppy for me to find and replace all ';' with ':' in my vcard data. Plus it could add a bug because the logic is not 100% correct...
can you please update your regexp to support ';' as well as ':'
I did this quick fix:
Inside the vcard.js
line 261 changed if (data[f].match(/^(VERSION|FN):/)) { to if (data[f].match(/^(VERSION|FN)/)) {
line 275 changed if (data[f].match(/^N:/)) { to if (data[f].match(/^N/)) {
Thanks buddy.