From 3aaf4fc8571b0a7841720d3f6da7afdc98a603c6 Mon Sep 17 00:00:00 2001 From: Keldaan Date: Wed, 3 Apr 2024 14:11:12 +0200 Subject: [PATCH] better reg exp for non european names (#1623) --- app/types/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/types/index.ts b/app/types/index.ts index c4a165aa66..8e1439ebee 100644 --- a/app/types/index.ts +++ b/app/types/index.ts @@ -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 = { // eslint-disable-next-line @typescript-eslint/ban-types