MCPcopy Create free account
hub / github.com/CommE2E/comm / isKeyserverThreadID

Function isKeyserverThreadID

lib/utils/validation-utils.js:141–147  ·  view source on GitHub ↗
(threadID: string)

Source from the content-addressed store, hash-verified

139const idSchemaRegExp: RegExp = new RegExp(`^${idSchemaRegex}$`);
140
141function isKeyserverThreadID(threadID: string): boolean {
142 return (
143 idSchemaRegExp.test(threadID) &&
144 !thickIDRegExp.test(threadID) &&
145 !farcasterThreadIDRegExp.test(threadID)
146 );
147}
148
149const pendingSidebarURLPrefix = 'sidebar';
150const pendingThickSidebarURLPrefix = 'dm_sidebar';

Calls

no outgoing calls

Tested by

no test coverage detected