From 6f051f3ae7e8f63dfe7481dc5f82d30a5b09ab55 Mon Sep 17 00:00:00 2001
From: Sergei Zharinov <zharinov@users.noreply.github.com>
Date: Thu, 10 Nov 2022 15:17:30 +0300
Subject: [PATCH] fix: Dependency dashboard message cleanup (#18857)

---
 lib/workers/repository/errors-warnings.ts | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lib/workers/repository/errors-warnings.ts b/lib/workers/repository/errors-warnings.ts
index bc4e274eb9..306cf9a939 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(', ');
 
-- 
GitLab