Extract a display name from a user ID.
The user ID to parse
A display-friendly name
Handles common patterns like emails and underscore-separated IDs.
getDisplayName('john.doe@example.com'); // "John Doe"getDisplayName('john_doe_123'); // "John Doe"getDisplayName('johndoe'); // "Johndoe" Copy
getDisplayName('john.doe@example.com'); // "John Doe"getDisplayName('john_doe_123'); // "John Doe"getDisplayName('johndoe'); // "Johndoe"
Extract a display name from a user ID.