MCPcopy Create free account
hub / github.com/OpenAnonymity/oa-chat / isInviteCodeInput

Method isInviteCodeInput

chat/components/ThanksPanel.js:140–143  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

138 }
139
140 isInviteCodeInput(value) {
141 const normalized = this.normalizeInviteCode(value);
142 return normalized.length === 24 && /^[a-zA-Z0-9]+$/.test(normalized);
143 }
144
145 getInputKind(value) {
146 const trimmed = (value || '').trim();

Callers 1

getInputKindMethod · 0.95

Calls 1

normalizeInviteCodeMethod · 0.95

Tested by

no test coverage detected