Whalebird-desktop-client-ma.../renderer/utils/domain.ts

8 lines
164 B
TypeScript

export const domainFromAcct = (acct: string): string | null => {
const [_account, server] = acct.split('@')
if (server) {
return server
}
return null
}