mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #5007] [CLOSED] fix(EffectiveURL.ts): add regex that replaces literal variable string… #5016
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#5016
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?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/5007
Author: @yousefmarey12
Created: 4/17/2025
Status: ❌ Closed
Base:
main← Head:4672-whitespace-vars-codesnippet-generation📝 Commits (3)
916dbaffix(EffectiveURL.ts): add regex that replaces literal variable strings with their valuebf910f7Merge branch 'hoppscotch:main' into 4672-whitespace-vars-codesnippet-generation00beaaffix(EffectiveURL.ts): reused a utility function, parseUrlAndPath, and removed my regex📊 Changes
2 files changed (+11 additions, -1 deletions)
View changed files
➕
.cz.toml(+6 -0)📝
packages/hoppscotch-common/src/helpers/utils/EffectiveURL.ts(+5 -1)📄 Description
Fix: #4672
First of all, this is a mainly a copy of another PR #4944. deleted the remote branch, and did not know that corresponding PRs would be deleted as well (new to using Git).
Problem
escaping
<<and>>does not happen when using variables in the request endpoint. For example, we have an environment variable var1=xyz 123. The request endpoint sent to the gql codegen would behttp://abc.com/<<var1>>instead ofhttp://abc.com/xyz+123. This was fixed using basic regular expressions.Note to Reviewers
I deleted the unnecessary code in the old PR, and it worked.
Feel free to ask anything.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.