Merge branch 'env-file-fix-old' into env-file-fix

This commit is contained in:
Anirban Kar
2024-12-18 20:06:29 +05:30
8 changed files with 238 additions and 131 deletions

View File

@@ -92,6 +92,7 @@ export function useEditChatDescription({
}
const lengthValid = trimmedDesc.length > 0 && trimmedDesc.length <= 100;
// Allow letters, numbers, spaces, and common punctuation but exclude characters that could cause issues
const characterValid = /^[a-zA-Z0-9\s\-_.,!?()[\]{}'"]+$/.test(trimmedDesc);