@openpass/openpass-js-sdk
Version:
OpenPass SSO JavaScript SDK
14 lines • 497 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.joinPaths = void 0;
const PATH_SEPARATOR = "/";
function joinPaths(paths) {
return paths
.map((path) => {
const sanitized = path.endsWith(PATH_SEPARATOR) ? path.substring(0, path.length - 1) : path;
return sanitized.startsWith(PATH_SEPARATOR) ? sanitized.substring(1) : sanitized;
})
.join(PATH_SEPARATOR);
}
exports.joinPaths = joinPaths;
//# sourceMappingURL=path.js.map