diff --git a/packages/bruno-electron/src/ipc/network/interpolate-vars.js b/packages/bruno-electron/src/ipc/network/interpolate-vars.js index 6df6a7c1..0c889ca7 100644 --- a/packages/bruno-electron/src/ipc/network/interpolate-vars.js +++ b/packages/bruno-electron/src/ipc/network/interpolate-vars.js @@ -43,7 +43,9 @@ const interpolateVars = (request, envVars = {}, collectionVariables = {}, proces return str; } - const template = Handlebars.compile(str, { noEscape: true }); + // Handlebars doesn't allow dots as identifiers, so we need to use literal segments + let strLiteralSegment = str.replace('{{', '{{[').replace('}}', ']}}'); + const template = Handlebars.compile(strLiteralSegment, { noEscape: true }); // collectionVariables take precedence over envVars const combinedVars = {