fix: fix issue where wrapApiConfigurationError would fail to regex match a string due to boundary constraints on the regex
This commit is contained in:
parent
2be6da694a
commit
73c938dbc0
6 changed files with 10 additions and 6 deletions
2
lib/api-client.js
generated
2
lib/api-client.js
generated
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue