mirror of
https://github.com/usebruno/bruno.git
synced 2024-12-22 14:41:04 +01:00
fix(#964): Use const
This commit is contained in:
parent
bad9d0a3ef
commit
005a936a61
@ -44,7 +44,7 @@ const interpolateVars = (request, envVars = {}, collectionVariables = {}, proces
|
||||
}
|
||||
|
||||
// Handlebars doesn't allow dots as identifiers, so we need to use literal segments
|
||||
let strLiteralSegment = str.replace('{{', '{{[').replace('}}', ']}}');
|
||||
const strLiteralSegment = str.replace('{{', '{{[').replace('}}', ']}}');
|
||||
const template = Handlebars.compile(strLiteralSegment, { noEscape: true });
|
||||
|
||||
// collectionVariables take precedence over envVars
|
||||
|
Loading…
Reference in New Issue
Block a user