From ba60d98c02a86c5240e32b260a22ab61345fe55d Mon Sep 17 00:00:00 2001 From: TopETH Date: Fri, 12 Apr 2024 22:55:30 -0400 Subject: [PATCH] feat: update allowed separator list --- apps/masterbots.ai/lib/url.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/masterbots.ai/lib/url.ts b/apps/masterbots.ai/lib/url.ts index d6ef9ba2..3b5a88bf 100644 --- a/apps/masterbots.ai/lib/url.ts +++ b/apps/masterbots.ai/lib/url.ts @@ -11,7 +11,7 @@ export const toSlug = (username: string, separator = "_"): string => { .toLowerCase() .replace(/&/g, '_') .replace(/ & /g, '_') - .replace(/[^a-z0-9_]/g, separator) + .replace(/[^a-z0-9_+-]/g, separator) } // Function to simulate converting a slug back to a username