openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
9 lines (8 loc) • 306 B
JavaScript
//#region extensions/telegram/src/control-ui-base-path.ts
function normalizeControlUiBasePath(e, t) {
if (!e || e === "/") return "";
const n = e.startsWith("/") ? e : `/${e}`;
return t === "all" ? n.replace(/\/+$/, "") : n.replace(/\/$/, "");
}
//#endregion
export { normalizeControlUiBasePath as t };