mirror of
https://github.com/snachodog/tok-to-insta-follower-bridge.git
synced 2025-04-10 14:11:22 -06:00
Replace all underscores in a handle, not just the first
This commit is contained in:
parent
ac9f505e43
commit
da2cf7d26a
@ -33,7 +33,7 @@ export const removeReloadEl = () => {
|
||||
export const getAccountNameAndDisplayName = (userCell: Element) => {
|
||||
const [avatarEl, displayNameEl] = userCell?.querySelectorAll("a")
|
||||
const twAccountName = avatarEl?.getAttribute("href")?.replace("/", "")
|
||||
const twAccountNameRemoveUnderscore = twAccountName.replace("_", "") // bsky does not allow underscore in handle. so remove it.
|
||||
const twAccountNameRemoveUnderscore = twAccountName.replaceAll("_", "") // bsky does not allow underscores in handle, so remove them.
|
||||
const twDisplayName = displayNameEl?.textContent
|
||||
return { twAccountName, twDisplayName, twAccountNameRemoveUnderscore }
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user