MCPcopy Create free account
hub / github.com/Ptechgithub/configs / isValidUUID

Function isValidUUID

worker.js:598–601  ·  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

596 * @returns {boolean} True if the string is a valid UUID, false otherwise.
597 */
598function isValidUUID(uuid) {
599 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;
600 return uuidRegex.test(uuid);
601}
602
603const WS_READY_STATE_OPEN = 1;
604const WS_READY_STATE_CLOSING = 2;

Callers 2

worker.jsFile · 0.85
stringifyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected