MarcelWaldvogel / vcard4-ts

A vCard 4.0 library with type safety first
MIT License
18 stars 3 forks source link

Nag PARAM_UNESCAPED_COMMA for comma-separated TYPE value list #15

Open mattmattmatt opened 4 months ago

mattmattmatt commented 4 months ago

According to the spec, the line TEL;TYPE="work,fax";PREF=1:+45 1234 1234 is a valid result to represent "type parameter values specified as a parameter list (e.g., TYPE=text;TYPE=voice) or as a list (e.g., TYPE="text,voice")".

However, vcard4-ts logs this nag:

{
  "key":"PARAM_UNESCAPED_COMMA",
  "description": "Unescaped comma in parameter value",
  "isError": false,
  "attributes": {
    "property": "TEL",
    "parameter": "TYPE",
    "line": "TEL;TYPE=\"work,fax\";PREF=1:+45 1234 1234"
  }
}

Am I misunderstanding something, or can I safely ignore this nag?