UNPKG

@ply-ct/ply

Version:

REST API Automated Testing

16 lines 432 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFlowName = void 0; /** * Without path */ const getFlowName = (flow) => { let name = flow.path; const lastSlash = name.lastIndexOf('/'); if (lastSlash > 0 && lastSlash < name.length - 1) { name = name.substring(lastSlash + 1); } return name; }; exports.getFlowName = getFlowName; //# sourceMappingURL=flowbee.js.map