fix: fix issue where wrapApiConfigurationError would fail to regex match a string due to boundary constraints on the regex

This commit is contained in:
Fotis Koutoulakis (@NlightNFotis)
2025-03-28 14:32:53 +00:00
parent 2be6da694a
commit 73c938dbc0
6 changed files with 10 additions and 6 deletions

View File

@@ -245,7 +245,7 @@ export function wrapApiConfigurationError(e: unknown) {
if (
e.message.includes("API rate limit exceeded for installation") ||
e.message.includes("commit not found") ||
/^ref .* not found in this repository$/.test(e.message)
/ref .* not found in this repository/.test(e.message)
) {
return new ConfigurationError(e.message);
}