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