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