mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 13:35:41 +00:00
3 lines
101 B
TypeScript
3 lines
101 B
TypeScript
export function createSlug(title: string) {
|
|
return title.toLowerCase().replace(/[.,\s]+/g, '-')
|
|
} |