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