Introduce acct directory
This commit is contained in:
parent
4ef3d3a6d2
commit
aa94035987
56 changed files with 58 additions and 58 deletions
4
src/acct/parse.ts
Normal file
4
src/acct/parse.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
export default acct => {
|
||||
const splitted = acct.split('@', 2);
|
||||
return { username: splitted[0], host: splitted[1] || null };
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue