diff --git a/tools/challenge-helper-scripts/helpers/get-step-template.js b/tools/challenge-helper-scripts/helpers/get-step-template.js index 981ffdfa98..dee294f2ec 100644 --- a/tools/challenge-helper-scripts/helpers/get-step-template.js +++ b/tools/challenge-helper-scripts/helpers/get-step-template.js @@ -27,7 +27,10 @@ function getStepTemplate({ }) { const seedTexts = Object.values(challengeSeeds) .map(({ contents, ext, editableRegionBoundaries }) => { - const fullContents = insertErms(contents, editableRegionBoundaries); + let fullContents = contents; + if (editableRegionBoundaries.length >= 2) { + fullContents = insertErms(contents, editableRegionBoundaries); + } return getCodeBlock(ext, fullContents); }) .join('\n');