Add strict validation and sanitization utilities for chat participant identifiers
Open
info-needed
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
## Feature Request
I would like to propose adding strict regex pattern validation and sanitization for chat participant ID transformation utilities (`getChatParticipantIdFromName` and `getChatParticipantNameFromId`) to ensure secure and robust identifier handling.
## Proposed Solution
- Validate participant names against expected safe character sets before prefix concatenation.
- Enhance ID parsing to safely handle unexpected or malformed prefix formats.
-
Contributor guide
Assessment
This issue has not been assessed yet.