Skip to content

Commit

Permalink
better reg exp for non european names (#1623)
Browse files Browse the repository at this point in the history
  • Loading branch information
keldaan-ag authored Apr 3, 2024
1 parent 8906cbe commit 3aaf4fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/types/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export const CDN_URL =
"https://raw.githubusercontent.com/keldaanCommunity/SpriteCollab/master"

// eslint-disable-next-line no-useless-escape
export const USERNAME_REGEXP = /^[a-zA-Z0-9\._\-]{2,20}[^.-]$/
export const USERNAME_REGEXP = /^(\p{Letter}|[0-9]|\.|-|_){3,24}$/u

export type NonFunctionPropNames<T> = {
// eslint-disable-next-line @typescript-eslint/ban-types
Expand Down

0 comments on commit 3aaf4fc

Please sign in to comment.