<div dir="ltr"><div dir="ltr">Hi,<div><br></div><div>uri_string:dissect_query/1 is already fixed on master so it will be available in OTP-22:</div><div><br></div><div><div><font face="monospace, monospace">1> uri_string:dissect_query("b=12&a").</font></div><div><font face="monospace, monospace">[{"b","12"},{"a",true}]</font></div><div><font face="monospace, monospace">2> </font></div></div><div><br></div><div>BR/Peter</div><div><br></div><div><p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><a name="_MailOriginal"><span lang="EN-US">-----Original
Message-----<br>
From: erlang-questions-bounces@erlang.org <erlang-questions-bounces@erlang.org>
On Behalf Of Loïc Hoguin<br>
Sent: den 10 maj 2019 10:00<br>
To: Marc Worrell <marc@worrell.nl>; Leo Liu <sdl.web@gmail.com><br>
Cc: erlang-questions@erlang.org<br>
Subject: Re: [erlang-questions] Should uri_string:dissect_query/1 be able to
parse this?</span></a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Not just common,
it's not an error. The parsing code must be <a href="https://url.spec.whatwg.org/#urlencoded-parsing"><span style="color:windowtext;text-decoration-line:none">https://url.spec.whatwg.org/#urlencoded-parsing</span></a> to be correct.</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">On 10/05/2019
09:50, Marc Worrell wrote:</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> A query
argument without a ‘=‘ is something you see quite often.</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> So in my
opinion the uri_string module should be able to handle it.</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> - Marc</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> On 10
May 2019, at 04:31, Leo Liu <<a href="mailto:sdl.web@gmail.com"><span style="color:windowtext;text-decoration-line:none">sdl.web@gmail.com</span></a>> wrote:</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>>
uri_string is a solid module and great addition. I like using it </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>>
whenever possible. But,</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>>>
uri_string:dissect_query("b=12&a").</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>>   {error,missing_value,<<>>}</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>>
whenever there is a key without a trailing =.</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> Does it
make more sense to be able to parse these query strings?</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>>
_______________________________________________</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>>
erlang-questions mailing list</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> <a href="mailto:erlang-questions@erlang.org"><span style="color:windowtext;text-decoration-line:none">erlang-questions@erlang.org</span></a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> <a href="https://protect2.fireeye.com/url?k=1a7128cd-46f887a6-1a716856-0cc47ad"><span style="color:windowtext;text-decoration-line:none">https://protect2.fireeye.com/url?k=1a7128cd-46f887a6-1a716856-0cc47ad</span></a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>>
93ea2-f9a6a7cb2daffdbe&u=<a href="http://erlang.org/mailman/listinfo/erlang-qu">http://erlang.org/mailman/listinfo/erlang-qu</a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>> estions</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>
_______________________________________________</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>
erlang-questions mailing list</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> <a href="mailto:erlang-questions@erlang.org"><span style="color:windowtext;text-decoration-line:none">erlang-questions@erlang.org</span></a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> <a href="https://protect2.fireeye.com/url?k=cb00f68b-978959e0-cb00b610-0cc47ad9"><span style="color:windowtext;text-decoration-line:none">https://protect2.fireeye.com/url?k=cb00f68b-978959e0-cb00b610-0cc47ad9</span></a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">>
3ea2-579928f8286624c6&u=<a href="http://erlang.org/mailman/listinfo/erlang-ques">http://erlang.org/mailman/listinfo/erlang-ques</a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> tions</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"> </p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">--</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">Loïc Hoguin</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><a href="https://protect2.fireeye.com/url?k=e60bd0f8-ba827f93-e60b9063-0cc47ad93ea2-123d568d944cd0be&u=https://ninenines.eu/"><span style="color:windowtext;text-decoration-line:none">https://protect2.fireeye.com/url?k=e60bd0f8-ba827f93-e60b9063-0cc47ad93ea2-123d568d944cd0be&u=https://ninenines.eu/</span></a></p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">_______________________________________________</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif">erlang-questions
mailing list</p>

<p class="gmail-MsoPlainText" style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif"><a href="mailto:erlang-questions@erlang.org"><span style="color:windowtext;text-decoration-line:none">erlang-questions@erlang.org</span></a></p>

<a href="https://protect2.fireeye.com/url?k=e5ae9822-b9273749-e5aed8b9-0cc47ad93ea2-efb6eef7993037ae&u=http://erlang.org/mailman/listinfo/erlang-questions"><span style="font-size:11pt;font-family:Calibri,sans-serif;color:windowtext;text-decoration-line:none">https://protect2.fireeye.com/url?k=e5ae9822-b9273749-e5aed8b9-0cc47ad93ea2-efb6eef7993037ae&u=http://erlang.org/mailman/listinfo/erlang-questions</span></a>    <br></div></div></div>