microsoft / microsoft/vscode

Add strict validation and sanitization utilities for chat participant identifiers

Open
#335,045 2 comments 0 reactions 1 assignee Claimed by @lramos15 View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.