12345678export function slugify(str: string): string { return str .toLowerCase() .replace(/[^\w\s-]/g, "") .replace(/[\s_]+/g, "-") .replace(/^-+|-+$/g, "");}