@redocly/respect-core
Version:
API testing framework core
9 lines • 373 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.combineUrl = combineUrl;
function combineUrl(host, path) {
const normalizedHost = host.endsWith('/') ? host.slice(0, -1) : host;
const normalizedPath = path.startsWith('/') ? path.slice(1) : path;
return `${normalizedHost}/${normalizedPath}`;
}
//# sourceMappingURL=url.js.map