diff --git a/src/hooks/runtime-fallback/constants.ts b/src/hooks/runtime-fallback/constants.ts index 87d03be5..f3f25956 100644 --- a/src/hooks/runtime-fallback/constants.ts +++ b/src/hooks/runtime-fallback/constants.ts @@ -29,9 +29,9 @@ export const RETRYABLE_ERROR_PATTERNS = [ /overloaded/i, /temporarily.?unavailable/i, /try.?again/i, - /\b429\b/, - /\b503\b/, - /\b529\b/, + /(?:^|\s)429(?:\s|$)/, + /(?:^|\s)503(?:\s|$)/, + /(?:^|\s)529(?:\s|$)/, ] /**