Skip to content

uri decode function #2261

Closed
Closed
@osresearch

Description

@osresearch

Describe the bug
The @uri string formatter percent-escapes it's input, but there is no filter to reverse the process.

To Reproduce

$ echo '"="' | jq -r '@uri'
%3D

It seems that perhaps @text would convert it back, but it passes the string unmodified:

$ echo '%3D' | jq -R -r '@text'
%3D

Expected behavior
That there would be a @urid or similar to match @base64 / @base64d.

Environment (please complete the following information):

  • Ubuntu LInux 20.04
  • jq version 1.6

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions