"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.removeSubpath = (url, subpath) => (url === null || url === void 0 ? void 0 : url.replace(subpath, '').replace(/(https?:\/\/)|(\/)+/g, '$1$2')) || '';
