Skip to content

Commit e8dda27

Browse files
authored
feat: update allowed separator list (#173)
1 parent 7769f4a commit e8dda27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

apps/masterbots.ai/lib/url.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export const toSlug = (username: string, separator = "_"): string => {
1111
.toLowerCase()
1212
.replace(/&/g, '_')
1313
.replace(/ & /g, '_')
14-
.replace(/[^a-z0-9_]/g, separator)
14+
.replace(/[^a-z0-9_+-]/g, separator)
1515
}
1616

1717
// Function to simulate converting a slug back to a username

0 commit comments

Comments
 (0)