export function normalizeBranchName(input: string): string { const normalized = input .trim() .toLowerCase() .replace(/[^a-z0-9/]+/g, "-") .replace(/-+/g, "-") .replace(/\/+/g, "/") .replace(/\/-/g, "/") .replace(/-\//g, "/") .replace(/^[-/]+|[-/]+$/g, "") return normalized }