MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / isPotentialUserIdentifier

Function isPotentialUserIdentifier

admin_board/admin_board.ts:1082–1085  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

1080
1081 if (parts.length === 0) return null;
1082 if (parts.some((part) => !isPotentialUserIdentifier(part))) return null;
1083
1084 const deduped = new Map<string, string>();
1085 for (const part of parts) {
1086 const key = /^-?\d+$/.test(part)
1087 ? String(Number(part))
1088 : part.replace(/^@/, "").toLowerCase();

Callers 2

parseUserIdentifiersFunction · 0.85
resolveUserForSeatActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected