From 3e8af379cfd19bcb14c0ffce704f0959d26c15df Mon Sep 17 00:00:00 2001 From: r-freeman Date: Sat, 11 Feb 2023 21:40:29 +0000 Subject: [PATCH] Updated regx pattern in createSlug function --- lib/createSlug.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/createSlug.ts b/lib/createSlug.ts index ba39cb6..fb3861a 100644 --- a/lib/createSlug.ts +++ b/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