Files
website/src/composables/slugify.ts
2026-08-13 21:26:22 +02:00

4 lines
98 B
TypeScript

export function slugify(str: string): string {
return str.toLowerCase().replaceAll(/ /g, '-');
}