UNPKG

@clerk/shared

Version:

Internal package utils used by the Clerk SDKs

12 lines (10 loc) 412 B
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); //#region src/internal/clerk-js/path.ts const SEPARATOR = "/"; const MULTIPLE_SEPARATOR_REGEX = /* @__PURE__ */ new RegExp("/{1,}", "g"); function joinPaths(a, b) { return [a, b].filter((p) => p).join(SEPARATOR).replace(MULTIPLE_SEPARATOR_REGEX, SEPARATOR); } //#endregion exports.joinPaths = joinPaths; //# sourceMappingURL=path.js.map