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