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:
@ -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.
|
||||
|
Reference in New Issue
Block a user