Normalize and validate a raw invite code string. Returns the cleaned code or null.
(raw)
| 187 | } |
| 188 | |
| 189 | /** Normalize and validate a raw invite code string. Returns the cleaned code or null. */ |
| 190 | parseInviteCode(raw) { |
| 191 | const trimmed = (raw || '').trim(); |
| 192 | if (!trimmed) return null; |
| 193 | const code = trimmed.replace(/[\s-]+/g, ''); |
| 194 | return code.length === 24 ? code : null; |
| 195 | } |
| 196 | |
| 197 | isPreviewMode() { |
no outgoing calls
no test coverage detected