preparing storing of new contact

This commit is contained in:
2025-10-09 20:34:38 +02:00
parent b0364ec77e
commit e0c05506c3
7 changed files with 129 additions and 1 deletions

View File

@@ -37,11 +37,22 @@ export function fn(vcard){
return match ? match[1].trim() : '';
}
export function number(vcard){
const match = vcard.match(/^TEL.*:(.+)$/m);
return match ? match[1].trim() : '';
}
export function org(vcard){
const match = vcard.match(/^ORG:(.+)$/m);
return match ? match[1].trim() : '';
}
export function url(vcard){
const match = vcard.match(/^URL:(.+)$/m);
return match ? match[1].trim() : '';
}
export function name(vcard){
const match = vcard.match(/^N:(.+)$/m);
let name = {