From b66409d87940de2aaa6df63cdc04f40b01956202 Mon Sep 17 00:00:00 2001 From: Axel Matstoms Date: Fri, 8 May 2026 10:25:15 +0200 Subject: [PATCH] Fix signal filter regex matching in ComponentTable In ComponentFMUCS, ComponentFMUME the regex in addSignalsToResults and removeSignalsFromResults is matched against the full cref of the signal, e.g. model.root.component.signal. In ComponentTable, the regex was matched against the signal name only. This commit fixes this inconsistency by updating the ComponentTable implementations to match against the full cref of the signal. --- src/OMSimulatorLib/ComponentTable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OMSimulatorLib/ComponentTable.cpp b/src/OMSimulatorLib/ComponentTable.cpp index c547eb615..d2bd35b12 100644 --- a/src/OMSimulatorLib/ComponentTable.cpp +++ b/src/OMSimulatorLib/ComponentTable.cpp @@ -394,7 +394,7 @@ oms_status_enu_t oms::ComponentTable::addSignalsToResults(const char* regex) if (x.second) continue; - if (regex_match(std::string(x.first), exp)) + if (regex_match(std::string(getFullCref() + x.first), exp)) x.second = true; } @@ -409,7 +409,7 @@ oms_status_enu_t oms::ComponentTable::removeSignalsFromResults(const char* regex if (!x.second) continue; - if (regex_match(std::string(x.first), exp)) + if (regex_match(std::string(getFullCref() + x.first), exp)) x.second = false; }