Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

344 B
Raw Blame
export const formatProxmoxVersion = (rawVersion: string | null | undefined): string => {
  const version = (rawVersion ?? '').trim();
  if (!version || version.toLowerCase() === 'unknown') return '';

  return (
    version.match(/pve-manager\/([^/\s]+)/i)?.[1] ||
    version.match(/\d+(?:\.\d+)+(?:[-+][\w.-]+)?/)?.[0] ||
    version
  );
};