Skip to content
Snippets Groups Projects
Unverified Commit a4d5faa7 authored by marihachi's avatar marihachi Committed by GitHub
Browse files

Rename render acct (#5)

parent 148730da
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,6 @@ export function parse(acct: string): Acct { ...@@ -9,6 +9,6 @@ export function parse(acct: string): Acct {
return { username: split[0], host: split[1] || null }; return { username: split[0], host: split[1] || null };
} }
export function render(acct: Acct): string { export function toString(acct: Acct): string {
return acct.host == null ? acct.username : `${acct.username}@${acct.host}`; return acct.host == null ? acct.username : `${acct.username}@${acct.host}`;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment