1
0
mirror of https://github.com/stedolan/jq.git synced 2024-05-11 05:55:39 +00:00

Fix @uri example

Previously, the @uri example didn't match the actual behavior of the current jq, as exclamation marks do not need to be encoded in URIs.
Replace the example with an input that needs encoding, and is encoded by jq.
This commit is contained in:
Philipp Hagemeister
2013-12-20 11:32:26 +01:00
parent 18e828f17c
commit 4d40a47eab

@ -1021,9 +1021,9 @@ sections:
@uri "http://www.google.com/search?q=\(.search)"
will produce the following output for the input
`{"search":"jq!"}`:
`{"search":"what is jq?"}`:
http://www.google.com/search?q=jq%21
"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.