From 7d52bd7454404e1aec164dcb8c8067623e20922b Mon Sep 17 00:00:00 2001 From: XMRig Date: Fri, 29 Jan 2021 18:22:24 +0700 Subject: [PATCH] Extend normalization rules. --- src/hw/dmi/DmiMemory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hw/dmi/DmiMemory.cpp b/src/hw/dmi/DmiMemory.cpp index 480ad4b3..735af286 100644 --- a/src/hw/dmi/DmiMemory.cpp +++ b/src/hw/dmi/DmiMemory.cpp @@ -231,7 +231,7 @@ void xmrig::DmiMemory::setId(const char *slot, const char *bank) m_bank = bank; std::cmatch cm; - if (std::regex_match(slot, cm, std::regex("^Channel([A-Z])-DIMM(\\d+)$"))) { + if (std::regex_match(slot, cm, std::regex("^Channel([A-Z])[-_]DIMM(\\d+)$", std::regex_constants::icase))) { m_id = fmt::format(kIdFormat, cm.str(1), cm.str(2)).c_str(); } else if (std::regex_search(bank, cm, std::regex("CHANNEL ([A-Z])$"))) {