mirror of
https://github.com/r-freeman/portfolio.git
synced 2025-07-04 01:00:20 +00:00
3 lines
101 B
TypeScript
3 lines
101 B
TypeScript
export function createSlug(title: string) {
|
|
return title.toLowerCase().replace(/[.,\s]+/g, '-')
|
|
} |