mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-14 22:17:30 -07:00
Fix typo
split は不規則動詞
This commit is contained in:
parent
d3526d8466
commit
97f7043178
1 changed files with 2 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
export default (acct: string) => {
|
||||
if (acct.startsWith('@')) acct = acct.substr(1);
|
||||
const splitted = acct.split('@', 2);
|
||||
return { username: splitted[0], host: splitted[1] || null };
|
||||
const split = acct.split('@', 2);
|
||||
return { username: split[0], host: split[1] || null };
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue