mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-23 03:40:14 +01:00
🌍 feat: Extend regex to support international usernames (#1918)
* 🌍 Extend regex to support international usernames
* update validators.spec.js
This commit is contained in:
parent
2f92b54787
commit
057fcf6274
2 changed files with 15 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue