]> granicus.if.org Git - jq/commitdiff
Fix @uri example 251/head
authorPhilipp Hagemeister <phihag@phihag.de>
Fri, 20 Dec 2013 10:32:26 +0000 (11:32 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Fri, 20 Dec 2013 10:32:53 +0000 (11:32 +0100)
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.

docs/content/3.manual/manual.yml

index fc98e9ed665468868de78ccc6495567f9b775fd0..b5952bb14a10b4a04244ced0017fd6dcd5f263a0 100644 (file)
@@ -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.