From 2e2e2e2cad97eb017ab02f8a67b751e0abe3bb72 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Mon, 23 Dec 2024 21:14:54 +0000 Subject: [PATCH] monitor: bring back old description behavior this makes description match the beginning again. Fixes #8756 --- src/helpers/Monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 33ec3abeb..89a833d45 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -412,7 +412,7 @@ bool CMonitor::matchesStaticSelector(const std::string& selector) const { // match by description const auto DESCRIPTIONSELECTOR = selector.substr(5); - return DESCRIPTIONSELECTOR == szShortDescription || DESCRIPTIONSELECTOR == szDescription; + return szDescription.starts_with(DESCRIPTIONSELECTOR) || szShortDescription.starts_with(DESCRIPTIONSELECTOR); } else { // match by selector return szName == selector;