Skip to content

Commit

Permalink
fixed FN in vCard
Browse files Browse the repository at this point in the history
  • Loading branch information
Zakher Masri authored and Zakher Masri committed Mar 14, 2022
1 parent beae38f commit e169613
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 17 deletions.
15 changes: 0 additions & 15 deletions contactCard.vcf

This file was deleted.

4 changes: 3 additions & 1 deletion index.js
Expand Up @@ -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) +
Expand Down
2 changes: 1 addition & 1 deletion 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": {
Expand Down

0 comments on commit e169613

Please sign in to comment.