mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-21 20:45:41 +00:00
Update createSlug function
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m43s
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m43s
This commit is contained in:
parent
a19df804b2
commit
377349ae44
@ -1,5 +1,6 @@
|
||||
export function createSlug(title: string) {
|
||||
return title.toLowerCase()
|
||||
.replace(/\'/g, '')
|
||||
.replace(/\?/g, '')
|
||||
.replace(/[.,\s]+/g, '-')
|
||||
}
|
Loading…
Reference in New Issue
Block a user