upd: prettify layout
This commit is contained in:
parent
34e6717dab
commit
1501ab261d
10 changed files with 168 additions and 140 deletions
|
|
@ -1,6 +1,6 @@
|
|||
import { Entity } from "megalodon";
|
||||
import { Entity } from 'megalodon';
|
||||
|
||||
const CHAR_COLLECTION: string = "0123456789abcdefghijklmnopqrstuvwxyz";
|
||||
const CHAR_COLLECTION: string = '0123456789abcdefghijklmnopqrstuvwxyz';
|
||||
|
||||
export enum IdConvertType {
|
||||
MastodonId,
|
||||
|
|
@ -26,7 +26,7 @@ export function convertId(in_id: string, id_convert_type: IdConvertType): string
|
|||
outStr = charFromNum(remainder) + outStr;
|
||||
input /= BigInt(36);
|
||||
}
|
||||
let ReversedoutStr = outStr.split("").reduce((acc, char) => char + acc, "");
|
||||
let ReversedoutStr = outStr.split('').reduce((acc, char) => char + acc, '');
|
||||
return ReversedoutStr;
|
||||
|
||||
default:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue