Skip to content
Myr

Fix uri format to follow RFC 3986 (#2157)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by itchyny · committed by GitHub · parent 55249e2 · Browse files · 2 files+12 added−12 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+12 added−12 removed

  • tests:+11 added−11 removed
  • other:+1 added−1 removed

2 files+12 added−12 removed

modified:src/builtin.c+1 added-1 removed
643 unmodified lines
644 jv_free(fmt);645 input = f_tostring(jq, input);646647 int unreserved[128] = {0};648 const char* p = CHARS_ALPHANUM "-_.!~*'()";648 const char* p = CHARS_ALPHANUM "-_.~";649 while (*p) unreserved[(int)*p++] = 1;650651 jv line = jv_string("");652 const char* s = jv_string_value(input);
1211 unmodified lines
modified:tests/jq.test+11 added-11 removed
59 unmodified lines
60"inter\("pol" + "ation")"61null62"interpolation"6364@text,@json,([1,.] | (@csv, @tsv)),@html,@uri,@sh,@base64,(@base64 | @base64d)65"<>&'\"\t"66"<>&'\"\t"67"\"<>&'\\\"\\t\""68"1,\"<>&'\"\"\t\""69"1\t<>&'\"\\t"70"&lt;&gt;&amp;&apos;&quot;\t"71"%3C%3E%26'%22%09"72"'<>&'\\''\"\t'"73"PD4mJyIJ"74"<>&'\"\t"64@text,@json,([1,.]|@csv,@tsv),@html,@uri,@sh,(@base64|.,@base64d)65"!()<>&'\"\t"66"!()<>&'\"\t"67"\"!()<>&'\\\"\\t\""68"1,\"!()<>&'\"\"\t\""69"1\t!()<>&'\"\\t"70"!()&lt;&gt;&amp;&apos;&quot;\t"71"%21%28%29%3C%3E%26%27%22%09"72"'!()<>&'\\''\"\t'"73"ISgpPD4mJyIJ"74"!()<>&'\"\t"7576# regression test for #43677@base6478"foóbar\n"
1726 unmodified lines