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

2
lib/api-client.js generated
View file

@ -206,7 +206,7 @@ function wrapApiConfigurationError(e) {
if ((0, util_1.isHTTPError)(e)) {
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 util_1.ConfigurationError(e.message);
}
}