Skip to content

Commit e2a6178

Browse files
Merge pull request #9 from ilangv/patch-1
Fix Scenario Outline containing header cell string
2 parents 6ad0993 + 8d6e2c3 commit e2a6178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -225,8 +225,8 @@ module.exports = function (config) {
225225
outlineExample[headerCell] = rowCell;
226226
// append actual value to example variable place holders in steps
227227
if (config.includeExampleValues) {
228-
const re = new RegExp(headerCell, 'g');
229-
outlineScenario = JSON.parse(JSON.stringify(outlineScenario).replace(re, `${headerCell}:${rowCell}`));
228+
const re = new RegExp(`<${headerCell}>`, 'g');
229+
outlineScenario = JSON.parse(JSON.stringify(outlineScenario).replace(re, `<${headerCell}:${rowCell}>`));
230230
}
231231
}
232232

0 commit comments

Comments
 (0)