Skip to content

Commit

Permalink
Merge bafbe91 into a17dd32
Browse files Browse the repository at this point in the history
  • Loading branch information
itchyny committed Jul 9, 2020
2 parents a17dd32 + bafbe91 commit 5b033e6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,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("");
Expand Down
2 changes: 1 addition & 1 deletion tests/jq.test
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ null
"1,\"<>&'\"\"\t\""
"1\t<>&'\"\\t"
"&lt;&gt;&amp;&apos;&quot;\t"
"%3C%3E%26'%22%09"
"%3C%3E%26%27%22%09"
"'<>&'\\''\"\t'"
"PD4mJyIJ"
"<>&'\"\t"
Expand Down

0 comments on commit 5b033e6

Please sign in to comment.