Skip to content

Commit

Permalink
feat: update allowed separator list (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
TopETH authored Apr 13, 2024
1 parent 7769f4a commit e8dda27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/masterbots.ai/lib/url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e8dda27

Please sign in to comment.