(step, index)
| 445 | } |
| 446 | |
| 447 | function generateStepPrefix(step, index) { |
| 448 | const stepName = step.toString() |
| 449 | const cleanedName = clearString(stepName) |
| 450 | .replace(/[^a-zA-Z0-9_-]/g, '_') |
| 451 | .replace(/_{2,}/g, '_') |
| 452 | .slice(0, 80) |
| 453 | .trim() |
| 454 | |
| 455 | return `${String(index).padStart(4, '0')}_${cleanedName}` |
| 456 | } |
| 457 | } |
no test coverage detected