[GH-ISSUE #2554] [bug] when having a environment variable whith a dash '-' in its name, the variable is not colorized in the url #851

Closed
opened 2026-03-16 17:25:25 +03:00 by kerem · 0 comments
Owner

Originally created by @JulienPerrin on GitHub (Aug 2, 2022).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2554

Originally assigned to: @anwarulislam on GitHub.

Is there an existing issue for this?

  • I have searched the existing issues

Current behavior

When I have a request with a url like :
<<url-with-dash>>/tatata

<<url-with-dash>> is not colorized even if the environment variable exists.

This makes it seems like like I mispelled the variable, which is a bit irritating.

Steps to reproduce

  1. create a collection
  2. create a request GET inside with this inside the url tititi/<<test>>/<<test-with-dash>>/tatata
  3. create an environment and declare the 2 variables <<test>> and <<test-with-dash>> inside
  4. select the environment
  5. observe that coloration of the url in the request is not good

image

Environment

Production

Version

Self-hosted

Originally created by @JulienPerrin on GitHub (Aug 2, 2022). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/2554 Originally assigned to: @anwarulislam on GitHub. ### Is there an existing issue for this? - [X] I have searched the existing issues ### Current behavior When I have a request with a url like : `<<url-with-dash>>/tatata` `<<url-with-dash>>` is not colorized even if the environment variable exists. This makes it seems like like I mispelled the variable, which is a bit irritating. ### Steps to reproduce 1. create a collection 2. create a request GET inside with this inside the url `tititi/<<test>>/<<test-with-dash>>/tatata` 3. create an environment and declare the 2 variables `<<test>>` and `<<test-with-dash>>` inside 4. select the environment 5. observe that coloration of the url in the request is not good ![image](https://user-images.githubusercontent.com/7848947/182471195-a01ad95d-11d3-4ece-83ee-a566f943b77a.png) ### Environment Production ### Version Self-hosted
kerem 2026-03-16 17:25:25 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hoppscotch#851
No description provided.