From a2fcae43838aaa4e8c589d0fdd2de7454cd0b6a5 Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 14 Apr 2019 02:33:50 +0900 Subject: [PATCH] Fix bug --- src/misc/id/aid.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/id/aid.ts b/src/misc/id/aid.ts index e08935b312..1fe15bf1ab 100644 --- a/src/misc/id/aid.ts +++ b/src/misc/id/aid.ts @@ -14,7 +14,7 @@ function getTime(time: number) { } function getRandom() { - return counter.toString(36).padStart(2, '0').substr(2); + return counter.toString(36).padStart(2, '0').slice(-2); } export function genAid(date: Date): string {