mirror of
https://github.com/chrononeko/chronocat.git
synced 2024-11-16 04:35:56 +00:00
feat(shell): update uix svc
This commit is contained in:
parent
692f034e93
commit
650e19dddb
@ -1,6 +1,8 @@
|
||||
const uinRegex = /\d+/
|
||||
|
||||
const isUin = (uin: unknown) => typeof uin === 'string' && uinRegex.test(uin)
|
||||
const isUin = (uin: unknown) =>
|
||||
(typeof uin === 'string' && uin !== '0' && uinRegex.test(uin)) ||
|
||||
(typeof uin === 'number' && uin > 9999)
|
||||
|
||||
const isUid = (uid: unknown) =>
|
||||
typeof uid === 'string' && uid.length === 24 && uid.startsWith('u_')
|
||||
|
Loading…
Reference in New Issue
Block a user