🌍 feat: Extend regex to support international usernames (#1918)

* 🌍 Extend regex to support international usernames

* update validators.spec.js
This commit is contained in:
Fuegovic 2024-02-28 14:27:57 -05:00 committed by GitHub
parent 2f92b54787
commit 057fcf6274
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 4 deletions

View file

@ -404,9 +404,6 @@ describe('Zod Schemas', () => {
it('should reject invalid usernames', () => {
const invalidUsernames = [
'Дмитрий', // Cyrillic characters
'محمد', // Arabic characters
'张伟', // Chinese characters
'john{doe}', // Contains `{` and `}`
'j', // Only one character
'a'.repeat(81), // More than 80 characters