fix(server): IdService.parseを全てのidタイプに対応させるように (#10533)

* wip fix-id

* ✌️

* fix import
This commit is contained in:
tamaina
2023-04-09 04:41:06 +09:00
committed by GitHub
parent 7a33c5d2ee
commit d76220cc80
7 changed files with 92 additions and 7 deletions

View File

@@ -3,6 +3,8 @@
import * as crypto from 'node:crypto';
export const aidRegExp = /^[0-9a-z]{10}$/;
const TIME2000 = 946684800000;
let counter = crypto.randomBytes(2).readUInt16LE(0);