mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-15 00:15:42 +00:00
r-freeman
1715e0c275
Some checks failed
Build And Publish / BuildAndPublish (push) Failing after 1m50s
5 lines
138 B
TypeScript
5 lines
138 B
TypeScript
export function createSlug(title: string) {
|
|
return title.toLowerCase()
|
|
.replace(/\?/g, '')
|
|
.replace(/[.,\s]+/g, '-')
|
|
} |