MCPcopy Index your code
hub / github.com/Ptechgithub/pp-worker / isValidUUID

Function isValidUUID

_worker.js:674–677  ·  view source on GitHub ↗

* Checks if a given string is a valid UUID. * Note: This is not a real UUID validation. * @param {string} uuid The string to validate as a UUID. * @returns {boolean} True if the string is a valid UUID, false otherwise.

(uuid)

Source from the content-addressed store, hash-verified

672 * @returns {boolean} True if the string is a valid UUID, false otherwise.
673 */
674function isValidUUID(uuid) {
675 const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[4][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
676 return uuidRegex.test(uuid);
677}
678
679const WS_READY_STATE_OPEN = 1;
680const WS_READY_STATE_CLOSING = 2;

Callers 2

_worker.jsFile · 0.85
stringifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected