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