mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[GH-ISSUE #5336] [bug]: No color highlight of variables with dot (.) in the name #2042
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#2042
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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?
Platform
Web App
Browser
Edge
Operating System
macOS
Bug Description
Variable without the dot are highlighted, it seems the problem is only with dot.
Deployment Type
Hoppscotch Cloud
Version
No response
@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
Regex after adding adding dot (.) to support highlight for env variables like client.secret
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.
@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: @.***>
@souravagrawal29 commented on GitHub (Sep 27, 2025):
@mrmaramreddy Raised the PR https://github.com/hoppscotch/hoppscotch/pull/5409 that fixes the issue.
@liyasthomas commented on GitHub (Sep 29, 2025):
The latest version of Hoppscotch has resolved this bug.