MCPcopy Create free account
hub / github.com/anus-dev/ANUS / checkMessage

Function checkMessage

packages/core/src/utils/quotaErrorDetection.ts:45–47  ·  view source on GitHub ↗
(message: string)

Source from the content-addressed store, hash-verified

43 // We use string methods instead of regex to avoid ReDoS vulnerabilities
44
45 const checkMessage = (message: string): boolean =>
46 message.includes("Quota exceeded for quota metric 'Anus") &&
47 message.includes("Pro Requests'");
48
49 if (typeof error === 'string') {
50 return checkMessage(error);

Callers 1

isProQuotaExceededErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected