x/momentum/common/helpers.ts
12345678export function trimSlashes(path?: string) { return path?.replace(/^[\/]+|[\/]+$/g, "");}export function trimTrailingSlashes(path?: string) { return path?.replace(/^|[\/]+$/g, "");}