node-vcard icon indicating copy to clipboard operation
node-vcard copied to clipboard

Fixed a bug for you

Open g00dnatur3 opened this issue 7 years ago • 0 comments

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.

g00dnatur3 avatar Jul 09 '17 05:07 g00dnatur3