fix(#964): Use const

This commit is contained in:
Nelu Platonov 2023-11-15 21:42:38 +01:00
parent bad9d0a3ef
commit 005a936a61
No known key found for this signature in database
GPG Key ID: DC1D6718097E5B33

View File

@ -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