Skip to content

Fixed a bug for you #13

@g00dnatur3

Description

@g00dnatur3

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions