MCPcopy
hub / github.com/codedogQBY/ReadAny / getUUID

Function getUUID

packages/foliate-js/epub.js:595–601  ·  view source on GitHub ↗
(opf)

Source from the content-addressed store, hash-verified

593const isUUID = /([0-9a-f]{8})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{4})-([0-9a-f]{12})/;
594
595const getUUID = (opf) => {
596 for (const el of opf.getElementsByTagNameNS(NS.DC, "identifier")) {
597 const [id] = getElementText(el).split(":").slice(-1);
598 if (isUUID.test(id)) return id;
599 }
600 return "";
601};
602
603const getIdentifier = (opf) =>
604 getElementText(

Callers 1

deobfuscatorsFunction · 0.85

Calls 2

sliceMethod · 0.80
getElementTextFunction · 0.70

Tested by

no test coverage detected