diff --git a/lib/workers/repository/errors-warnings.ts b/lib/workers/repository/errors-warnings.ts index bc4e274eb928161117251d32188295d7d9d8e8ff..306cf9a939e667f4b51fcb29f8b0f305a01b820a 100644 --- a/lib/workers/repository/errors-warnings.ts +++ b/lib/workers/repository/errors-warnings.ts @@ -3,6 +3,7 @@ import type { RenovateConfig } from '../../config/types'; import { logger } from '../../logger'; import type { PackageFile } from '../../modules/manager/types'; import { emojify } from '../../util/emoji'; +import { regEx } from '../../util/regex'; import type { DepWarnings } from '../types'; export function getWarnings(config: RenovateConfig): string { @@ -111,7 +112,9 @@ export function getDepWarningsDashboard( } const depWarnings = warnings - .map((w) => w.replace('Failed to look up dependency ', '')) + .map((w) => + w.replace(regEx(/^Failed to look up(?: [-\w]+)? dependency /), '') + ) .map((dep) => '`' + dep + '`') .join(', ');