Update createSlug function
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 2m43s

This commit is contained in:
r-freeman 2024-09-23 15:59:44 +01:00
parent a19df804b2
commit 377349ae44

View File

@ -1,5 +1,6 @@
export function createSlug(title: string) {
return title.toLowerCase()
.replace(/\'/g, '')
.replace(/\?/g, '')
.replace(/[.,\s]+/g, '-')
}