Updated regx pattern in createSlug function

This commit is contained in:
r-freeman 2023-02-11 21:40:29 +00:00
parent 2781194d43
commit 3e8af379cf

View File

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