Update createSlug function

This commit is contained in:
r-freeman 2023-01-17 21:59:05 +00:00
parent d87ee48501
commit 976e3a7ef6

View File

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