Fix uri format to follow RFC 3986 (#2157)

This commit is contained in:
itchyny authored and GitHub committed 2023-07-13 23:23:23 +09:00
1 parent 55249e29be
commit 689a4e660b
2 files changed
+12 -12

No files matched your search

+1 -1
View File
@@ -645,7 +645,7 @@ static jv f_format(jq_state *jq, jv input, jv fmt) {
input = f_tostring(jq, input);
int unreserved[128] = {0};
const char* p = CHARS_ALPHANUM "-_.!~*'()";
const char* p = CHARS_ALPHANUM "-_.~";
while (*p) unreserved[(int)*p++] = 1;
jv line = jv_string("");