Update getAccountNameAndDisplayName so ellipsis are not required in user links

This commit is contained in:
Wes Souza 2024-11-14 16:03:43 -05:00 committed by GitHub
parent c47f022a14
commit 4d94ef6201
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -27,7 +27,7 @@ export const getAccountNameAndDisplayName = (userCell: Element) => {
const twDisplayName = displayNameEl?.textContent;
const bskyHandle =
userCell.textContent?.match(/([^/\s]+\.bsky\.social)/)?.[1] ??
userCell.textContent?.match(/bsky\.app\/profile\/([^/\s]+)…/)?.[1] ??
userCell.textContent?.match(/bsky\.app\/profile\/([^/\s]+)…?/)?.[1] ??
null;
return {