MCPcopy Create free account
hub / github.com/SamNet-dev/snix / isUUID

Function isUUID

cfworker/worker.js:194–194  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

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); }
195function ipv6ToStr(b) {
196 const parts = [];
197 for (let i = 0; i < 16; i += 2) {

Callers 1

fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected