diff --git a/src/lib/createSlug.ts b/src/lib/createSlug.ts index 2ec15fe..ba39cb6 100644 --- a/src/lib/createSlug.ts +++ b/src/lib/createSlug.ts @@ -1,3 +1,3 @@ export function createSlug(title: string) { - return title.toLowerCase().replace(/\s+/g, '-') + return title.toLowerCase().replace(/[.\s]+/g, '-') } \ No newline at end of file