(val: unknown)
| 265 | |
| 266 | // profiler_id and chunk_id must be 32 lowercase hex chars |
| 267 | const isHex32 = (val: unknown): boolean => typeof val === 'string' && /^[a-f0-9]{32}$/.test(val); |
| 268 | if (!isHex32(chunk.profiler_id)) { |
| 269 | return { reason: 'missing or invalid profiler_id' }; |
| 270 | } |
no test coverage detected