diff --git a/packages/shell/src/services/uix.ts b/packages/shell/src/services/uix.ts index 7a8962d..0a7d05a 100644 --- a/packages/shell/src/services/uix.ts +++ b/packages/shell/src/services/uix.ts @@ -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_')