(message: string)
| 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); |
no outgoing calls
no test coverage detected