We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
@uri documentation in manual: Applies percent-encoding, by mapping all reserved URI characters to a %XX sequence.
Applies percent-encoding, by mapping all reserved URI characters to a %XX sequence.
However, it does not percent-encode certain reserved characters like ! ( ) *.
! ( ) *
echo '"!()*#$&+,/:;=?@[]"' | jq -r '@uri' !()*%23%24%26%2B%2C%2F%3A%3B%3D%3F%40%5B%5D
The text was updated successfully, but these errors were encountered:
see also whatwg/url#369 "Need an "unreserved" character set (and better define how to percent-encode arbitrary strings)"
Sorry, something went wrong.
The single quote ' is also reserved but not encoded by @uri.
'
@uri
Using the test string at https://developers.google.com/maps/documentation/urls/url-encoding --
$ jqMaster --version jq-1.6-129-g80052e5-dirty $ jqMaster -n $'"! * \' ( ) ; : @ & = + $ , / ? % # [ ]" | @uri' "!%20*%20'%20(%20)%20%3B%20%3A%20%40%20%26%20%3D%20%2B%20%24%20%2C%20%2F%20%3F%20%25%20%23%20%5B%20%5D"
Successfully merging a pull request may close this issue.
@uri documentation in manual:
Applies percent-encoding, by mapping all reserved URI characters to a %XX sequence.
However, it does not percent-encode certain reserved characters like
! ( ) *
.The text was updated successfully, but these errors were encountered: