MCPcopy Index your code
hub / github.com/getsentry/sentry-javascript / isHex32

Function isHex32

packages/browser/src/profiling/utils.ts:267–267  ·  view source on GitHub ↗
(val: unknown)

Source from the content-addressed store, hash-verified

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 }

Callers 1

validateProfileChunkFunction · 0.85

Calls 1

testMethod · 0.65

Tested by

no test coverage detected