UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

10 lines (9 loc) • 331 B
//#region src/commands/models/alias-name.ts function normalizeAlias(e) { const t = e.trim(); if (!t) throw new Error("Alias cannot be empty."); if (!/^[A-Za-z0-9_.:-]+$/.test(t)) throw new Error("Alias must use letters, numbers, dots, underscores, colons, or dashes."); return t; } //#endregion export { normalizeAlias as t };