Skip to content

& displays as \u0026 #5982

@ewjoachim

Description

@ewjoachim

Describe the bug

It's just a very small bug, but still.

$ gh --version
gh version 2.14.2 (2022-07-14)
https://github.com/cli/cli/releases/tag/v2.14.2

Callling gh api / results in displays URL patterns where & is displayed as \u0026. Yes, Unicode point 0x26 is & so it's not false, but this is ugly and hard to read.

Steps to reproduce the behavior

  1. Type this gh api /
  2. View the output https://api.github.com/search/repositories?q={query}{\u0026page,per_page,sort,order}
  3. Expected: https://api.github.com/search/repositories?q={query}{&page,per_page,sort,order}

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageneeds to be reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions