diff --git a/lib/template.js b/lib/template.js index 049a910..c857415 100644 --- a/lib/template.js +++ b/lib/template.js @@ -93,8 +93,8 @@ const renderRecursively = (inputJson, template, execOptions = {}) => { if (typeof template === 'object' && template !== null) { return Object.fromEntries( Object.entries(template).flatMap(([key, value]) => { - const MY_KEYWORD_ESCAPED = "tempSpreadKeyword\\(\\)"; - const keywordMatcher = `^\\{\\{\\s*${MY_KEYWORD_ESCAPED}\\s*\\}\\}$`; + const TEMP_SPREAD_KEYWORD_ESCAPED = "tempSpreadKeyword\\(\\)"; + const keywordMatcher = `^\\{\\{\\s*${TEMP_SPREAD_KEYWORD_ESCAPED}\\s*\\}\\}$`; if (key.match(keywordMatcher)) { const evaluatedValue = renderRecursively(inputJson, value, execOptions);