[GH-ISSUE #5336] [bug]: No color highlight of variables with dot (.) in the name #2042

Closed
opened 2026-03-16 22:57:10 +03:00 by kerem · 4 comments
Owner

Originally created by @mrmaramreddy on GitHub (Aug 19, 2025).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5336

Originally assigned to: @souravagrawal29 on GitHub.

Is there an existing issue for this?

  • I have searched existing issues and this bug hasn't been reported yet

Platform

Web App

Browser

Edge

Operating System

macOS

Bug Description

  1. Create an environment variable with dot (.) in the name. For example: client.id
  2. Reference this variable in the request and notice no color highlight of the variable

Variable without the dot are highlighted, it seems the problem is only with dot.

Deployment Type

Hoppscotch Cloud

Version

No response

Originally created by @mrmaramreddy on GitHub (Aug 19, 2025). Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/5336 Originally assigned to: @souravagrawal29 on GitHub. ### Is there an existing issue for this? - [x] I have searched existing issues and this bug hasn't been reported yet ### Platform Web App ### Browser Edge ### Operating System macOS ### Bug Description 1. Create an environment variable with dot (.) in the name. For example: client.id 2. Reference this variable in the request and notice no color highlight of the variable Variable without the dot are highlighted, it seems the problem is only with dot. ### Deployment Type Hoppscotch Cloud ### Version _No response_
kerem 2026-03-16 22:57:10 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@souravagrawal29 commented on GitHub (Sep 27, 2025):

@mrmaramreddy Can I work on this issue ? I have narrowed the issue down to a regex used for matching environment variables and that does not contain the .

Current regex

const HOPP_ENVIRONMENT_REGEX = /(<<[a-zA-Z0-9-_]+>>)/g

Regex after adding adding dot (.) to support highlight for env variables like client.secret

const HOPP_ENVIRONMENT_REGEX = /(<<[a-zA-Z0-9-_.]+>>)/g

Can I go ahead and make the change ?

On a side note, the tooltip showing the env variable details is still not showing up dot env variables. Still looking into it to see what the issue. Any pointers would be highly helpful.

<!-- gh-comment-id:3341446220 --> @souravagrawal29 commented on GitHub (Sep 27, 2025): @mrmaramreddy Can I work on this issue ? I have narrowed the issue down to a regex used for matching environment variables and that does not contain the . Current regex ``` const HOPP_ENVIRONMENT_REGEX = /(<<[a-zA-Z0-9-_]+>>)/g ``` Regex after adding adding dot (.) to support highlight for env variables like client.secret ``` const HOPP_ENVIRONMENT_REGEX = /(<<[a-zA-Z0-9-_.]+>>)/g ``` Can I go ahead and make the change ? On a side note, the tooltip showing the env variable details is still not showing up dot env variables. Still looking into it to see what the issue. Any pointers would be highly helpful.
Author
Owner

@mrmaramreddy commented on GitHub (Sep 27, 2025):

Sure, please make the change.

Thanks,
Praveen


From: Sourav Agrawal @.>
Sent: Saturday, September 27, 2025 4:32:28 AM
To: hoppscotch/hoppscotch @.
>
Cc: Praveen @.>; Mention @.>
Subject: Re: [hoppscotch/hoppscotch] [bug]: No color highlight of variables with dot (.) in the name (Issue #5336)

[https://avatars.githubusercontent.com/u/34351980?s=20&v=4]souravagrawal29 left a comment (hoppscotch/hoppscotch#5336)https://github.com/hoppscotch/hoppscotch/issues/5336#issuecomment-3341446220

@mrmaramreddyhttps://github.com/mrmaramreddy Can I work on this issue ? I have narrowed the issue down to a regex used for matching environment variables and that does not contain the .

Current regex

const HOPP_ENVIRONMENT_REGEX = /(<<[a-zA-Z0-9-_]+>>)/g

Regex after adding adding dot (.) to support highlight for env variables like client.secret

const HOPP_ENVIRONMENT_REGEX = /(<<[a-zA-Z0-9-_.]+>>)/g

Can I go ahead and make the change ?

On a side note, the tooltip showing the env variable details is still not showing up dot env variables. Still looking into it to see what the issue. Any pointers would be highly helpful.


Reply to this email directly, view it on GitHubhttps://github.com/hoppscotch/hoppscotch/issues/5336#issuecomment-3341446220, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AEEF2NEKUPHKO6CTQUVCVPL3UZKSZAVCNFSM6AAAAACEG4IPVWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNBRGQ2DMMRSGA.
You are receiving this because you were mentioned.Message ID: @.***>

<!-- gh-comment-id:3341508526 --> @mrmaramreddy commented on GitHub (Sep 27, 2025): Sure, please make the change. Thanks, Praveen ________________________________ From: Sourav Agrawal ***@***.***> Sent: Saturday, September 27, 2025 4:32:28 AM To: hoppscotch/hoppscotch ***@***.***> Cc: Praveen ***@***.***>; Mention ***@***.***> Subject: Re: [hoppscotch/hoppscotch] [bug]: No color highlight of variables with dot (.) in the name (Issue #5336) [https://avatars.githubusercontent.com/u/34351980?s=20&v=4]souravagrawal29 left a comment (hoppscotch/hoppscotch#5336)<https://github.com/hoppscotch/hoppscotch/issues/5336#issuecomment-3341446220> @mrmaramreddy<https://github.com/mrmaramreddy> Can I work on this issue ? I have narrowed the issue down to a regex used for matching environment variables and that does not contain the . Current regex const HOPP_ENVIRONMENT_REGEX = /(<<[a-zA-Z0-9-_]+>>)/g Regex after adding adding dot (.) to support highlight for env variables like client.secret const HOPP_ENVIRONMENT_REGEX = /(<<[a-zA-Z0-9-_.]+>>)/g Can I go ahead and make the change ? On a side note, the tooltip showing the env variable details is still not showing up dot env variables. Still looking into it to see what the issue. Any pointers would be highly helpful. — Reply to this email directly, view it on GitHub<https://github.com/hoppscotch/hoppscotch/issues/5336#issuecomment-3341446220>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AEEF2NEKUPHKO6CTQUVCVPL3UZKSZAVCNFSM6AAAAACEG4IPVWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTGNBRGQ2DMMRSGA>. You are receiving this because you were mentioned.Message ID: ***@***.***>
Author
Owner

@souravagrawal29 commented on GitHub (Sep 27, 2025):

@mrmaramreddy Raised the PR https://github.com/hoppscotch/hoppscotch/pull/5409 that fixes the issue.

<!-- gh-comment-id:3341801338 --> @souravagrawal29 commented on GitHub (Sep 27, 2025): @mrmaramreddy Raised the PR https://github.com/hoppscotch/hoppscotch/pull/5409 that fixes the issue.
Author
Owner

@liyasthomas commented on GitHub (Sep 29, 2025):

The latest version of Hoppscotch has resolved this bug.

<!-- gh-comment-id:3347084852 --> @liyasthomas commented on GitHub (Sep 29, 2025): The latest version of Hoppscotch has resolved this bug.
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#2042
No description provided.