UNPKG

@labnex/cli

Version:

CLI for Labnex, an AI-Powered Testing Automation Platform

11 lines 450 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.parseRawSteps = parseRawSteps; function parseRawSteps(raw) { return raw .split(/\r?\n/) // Windows or Unix line breaks .map((l) => l.trim()) // trim whitespace .filter(Boolean) // remove empty lines .map((line) => line.replace(/^(?:[-•]\s*|\d+[.)]?\s*|[A-Za-z][.)]\s*)/, '').trim()); } //# sourceMappingURL=parseRawSteps.js.map