mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-22 16:25:42 +00:00
Ryan Freeman
18161a50e8
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m46s
5 lines
140 B
TypeScript
5 lines
140 B
TypeScript
export function createSlug(title: string) {
|
|
return title.toLowerCase()
|
|
.replace(/['?:.,]+/g, '')
|
|
.replace(/\s+/g, '-')
|
|
} |