From 377349ae44d65c46ba5cb76916ecf7dff0683d3e Mon Sep 17 00:00:00 2001 From: r-freeman Date: Mon, 23 Sep 2024 15:59:44 +0100 Subject: [PATCH] Update createSlug function --- lib/createSlug.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/createSlug.ts b/lib/createSlug.ts index c7e7b37..8bd6d27 100644 --- a/lib/createSlug.ts +++ b/lib/createSlug.ts @@ -1,5 +1,6 @@ export function createSlug(title: string) { return title.toLowerCase() + .replace(/\'/g, '') .replace(/\?/g, '') .replace(/[.,\s]+/g, '-') } \ No newline at end of file