summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--builtin.c2
-rw-r--r--docs/content/3.manual/manual.yml4
-rw-r--r--tests/all.test4
3 files changed, 5 insertions, 5 deletions
diff --git a/builtin.c b/builtin.c
index 7b215e61..8a809f51 100644
--- a/builtin.c
+++ b/builtin.c
@@ -413,7 +413,7 @@ static jv f_format(jv input, jv fmt) {
if (ch < 128 && unreserved[ch]) {
line = jv_string_append_buf(line, s, 1);
} else {
- line = jv_string_concat(line, jv_string_fmt("%%%02x", ch));
+ line = jv_string_concat(line, jv_string_fmt("%%%02X", ch));
}
s++;
}
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index 2e831299..b460e959 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -1350,7 +1350,7 @@ sections:
* `@uri`:
Applies percent-encoding, by mapping all reserved URI
- characters to a `%xx` sequence.
+ characters to a `%XX` sequence.
* `@csv`:
@@ -1379,7 +1379,7 @@ sections:
will produce the following output for the input
`{"search":"what is jq?"}`:
- "http://www.google.com/search?q=what%20is%20jq%3f"
+ "http://www.google.com/search?q=what%20is%20jq%3F"
Note that the slashes, question mark, etc. in the URL are
not escaped, as they were part of the string literal.
diff --git a/tests/all.test b/tests/all.test
index 0b5b9479..171c8087 100644
--- a/tests/all.test
+++ b/tests/all.test
@@ -67,13 +67,13 @@ null
"\"<>&'\\\"\""
"1,\"<>&'\"\"\""
"&lt;&gt;&amp;&apos;&quot;"
-"%3c%3e%26'%22"
+"%3C%3E%26'%22"
"'<>&'\\''\"'"
"PD4mJyI="
@uri
"\u03bc"
-"%ce%bc"
+"%CE%BC"
@html "<b>\(.)</b>"
"<script>hax</script>"