@labnex/cli
Version:
CLI for Labnex, an AI-Powered Testing Automation Platform
12 lines • 384 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractValue = extractValue;
function extractValue(step) {
const valuePattern = /(?:value|text|content):\s*([^,\s]+)/i;
const match = step.match(valuePattern);
if (match && match[1]) {
return match[1].trim();
}
return undefined;
}
//# sourceMappingURL=extractValue.js.map