fix: regex syntax error in docker discovery plugin

This commit is contained in:
2026-08-02 02:09:19 -04:00
parent c461723ec7
commit 7b84a10420
2 changed files with 1 additions and 1 deletions
Binary file not shown.
+1 -1
View File
@@ -49,7 +49,7 @@ module.exports = {
const edges = []; const edges = [];
for (const c of containers) { for (const c of containers) {
const name = c.Names && c.Names.length > 0 ? c.Names[0].replace(/^\\//, '') : c.Id.substring(0, 12); const name = c.Names && c.Names.length > 0 ? c.Names[0].replace(/^\//, '') : c.Id.substring(0, 12);
const slug = `docker-cnt-${c.Id.substring(0, 12)}`; const slug = `docker-cnt-${c.Id.substring(0, 12)}`;
const ports = (c.Ports || []).map(p => p.PublicPort ? `${p.PublicPort}:${p.PrivatePort}` : `${p.PrivatePort}`).join(', '); const ports = (c.Ports || []).map(p => p.PublicPort ? `${p.PublicPort}:${p.PrivatePort}` : `${p.PrivatePort}`).join(', ');