From 4548c16fe045ec8c5ec4a6cd4cc75ec02f490b4c Mon Sep 17 00:00:00 2001 From: HikariKnight <2557889+HikariKnight@users.noreply.github.com> Date: Fri, 27 Oct 2023 08:11:08 +0200 Subject: [PATCH] Add more things to shortenVendor --- internal/lsiommu/lsiommu.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lsiommu/lsiommu.go b/internal/lsiommu/lsiommu.go index 0ea18df..faf5c62 100644 --- a/internal/lsiommu/lsiommu.go +++ b/internal/lsiommu/lsiommu.go @@ -57,7 +57,7 @@ func GetIOMMU(args ...string) []string { logger.Printf("ls-iommu query returned\n%s", string(output)) // Make regex to shorten vendor names - shortenVendor := regexp.MustCompile(` Corporation:|Advanced Micro Devices, Inc\. \[(AMD)\/ATI\]:`) + shortenVendor := regexp.MustCompile(` Corporation:| Technology Inc.:| Electronics Co Ltd:|Advanced Micro Devices, Inc\. \[(AMD)(|\/ATI)\]:`) // Parse the output line by line scanner := bufio.NewScanner(strings.NewReader(string(output)))