Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect handle of value lists #23

Closed
mihai1voicescu opened this issue Apr 11, 2018 · 0 comments
Closed

Incorrect handle of value lists #23

mihai1voicescu opened this issue Apr 11, 2018 · 0 comments
Labels

Comments

@mihai1voicescu
Copy link

According to the RFC:

The default type is "voice". These type parameter values can be
specified as a parameter list (e.g., TYPE=text;TYPE=voice) or as a
value list (e.g., TYPE="text,voice")
. The default can be
overridden to another set of values by specifying one or more
alternate values. For example, the default TYPE of "voice" can be
reset to a VOICE and FAX telephone number by the value list
TYPE="voice,fax".

Unfortunately the parse is invalid of such arguments, "text,voice" gets parsed to ["\"text", "voice\""].
For example use:

TEL;VALUE=uri;PREF=1;TYPE="voice,home":tel:+1-555-555-5555;ext=5555

The parser should eliminate the double quotes. I will make a pull request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants