Merge pull request #94 from WesSouza/patch-1

Update getAccountNameAndDisplayName so ellipsis are not required in user links
This commit is contained in:
ryo 2024-11-15 06:07:10 +09:00 committed by GitHub
commit 37a1a0b05d
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 {