You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Structured property support (VCARD.N, VCARD.ADR) #3
Some properties have structured values with multiple components. Currently, these are treated as simple strings which may not correctly update all components.
Examples
VCARD.N (Name)
Format: Family;Given;Additional;Prefix;Suffix
N:Doe;John;Michael;Dr.;Jr.
VCARD.ADR (Address)
Format: ;;Street;City;Region;PostalCode;Country
ADR;TYPE=WORK:;;123 Main St;Berlin;;10115;Germany
Current Behavior
// May not handle structure correctlyupdateFields(vcard,{'N': 'Smith;Jane'// Missing components});
Option 2 adds semantic understanding which conflicts with field-agnostic approach. Option 1 keeps it simple but requires user to understand structure.
Workaround
Provide full structured value as string:
// User must know the formatupdateFields(vcard,{'N': 'Smith;Jane;Marie;;',// Family;Given;Additional;Prefix;Suffix'ADR': ';;123 Main St;Berlin;;10115;Germany'});
Recommendation
Document the structure in README, keep implementation simple. Users who need structured editing can use ical.js directly.
Activity