MCPcopy Index your code
hub / github.com/SamNet-dev/snix / h

Function h

cfworker/worker.js:191–191  ·  view source on GitHub ↗
(n)

Source from the content-addressed store, hash-verified

189
190function uuidToStr(b) {
191 const h = (n) => n.toString(16).padStart(2, "0");
192 return `${h(b[0])}${h(b[1])}${h(b[2])}${h(b[3])}-${h(b[4])}${h(b[5])}-${h(b[6])}${h(b[7])}-${h(b[8])}${h(b[9])}-${h(b[10])}${h(b[11])}${h(b[12])}${h(b[13])}${h(b[14])}${h(b[15])}`;
193}
194function isUUID(s) { return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(s); }

Callers 1

uuidToStrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected