fix: issue with non-alphanumeric characters within body env variables (fixes #2665)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hoppscotch/data",
|
||||
"version": "0.4.3",
|
||||
"version": "0.4.4",
|
||||
"description": "Data Types, Validations and Migrations for Hoppscotch Public Data Structures",
|
||||
"type": "module",
|
||||
"main": "dist/hoppscotch-data.cjs",
|
||||
|
||||
@@ -30,7 +30,7 @@ export function parseBodyEnvVariablesE(
|
||||
let depth = 0
|
||||
|
||||
while (result.match(REGEX_ENV_VAR) != null && depth <= ENV_MAX_EXPAND_LIMIT) {
|
||||
result = result.replace(/<<\w+>>/g, (key) => {
|
||||
result = result.replace(REGEX_ENV_VAR, (key) => {
|
||||
const found = env.find(
|
||||
(envVar) => envVar.key === key.replace(/[<>]/g, "")
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user