diff --git a/contactCard.vcf b/contactCard.vcf deleted file mode 100644 index d7651de..0000000 --- a/contactCard.vcf +++ /dev/null @@ -1,15 +0,0 @@ -BEGIN:VCARD -VERSION:3.0 -N;CHARSET=UTF-8:Masri;Zakher;Mahmoud;Mr.;The First -FN;CHARSET=UTF-8:Zakher -LN;CHARSET=UTF-8:Masri -TITLE;CHARSET=UTF-8:CEO -NICKNAME;CHARSET=UTF-8:Zak -NOTE;CHARSET=UTF-8:here are the notes -EMAIL;type=Work,INTERNET:zmasri@sikka.io -EMAIL;type=Office,INTERNET:zakhermasri@gmail.com -EMAIL;type=Crypto,INTERNET:masrizakher@gmail.com -TEL;type=Work:050025505050 -TEL;type=Office:050025505050 -TEL;type=Fax:050025505050 -END:VCARD \ No newline at end of file diff --git a/index.js b/index.js index 6a15f69..c49d236 100644 --- a/index.js +++ b/index.js @@ -96,7 +96,9 @@ exports.createVCard = function (vc) { isEmpty("", vc.middle_name, ";") + isEmpty("", vc.prefix, ";") + isEmpty("", vc.suffix, nl) + - isEmpty("FN;CHARSET=UTF-8:", vc.first_name, nl) + + isEmpty("FN;CHARSET=UTF-8:", vc.first_name, "") + + isEmpty(" ", vc.middle_name, "") + + isEmpty(" ", vc.last_name, nl) + isEmpty("LN;CHARSET=UTF-8:", vc.last_name, nl) + isEmpty("TITLE;CHARSET=UTF-8:", vc.title, nl) + isEmpty("NICKNAME;CHARSET=UTF-8:", vc.nickname, nl) + diff --git a/package.json b/package.json index aad9e51..9a42b84 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "homepage": "https://sikka-software.github.io/vcardi", "name": "@sikka/vcardi", - "version": "1.2.0", + "version": "1.2.1", "description": "vCard Generator", "main": "index.js", "scripts": {