From da2d7c3971d40f841f2afd7def8e4bad9a351e41 Mon Sep 17 00:00:00 2001 From: Emad Elsaid <54403+emad-elsaid@users.noreply.github.com> Date: Sun, 30 Mar 2025 03:12:15 +0200 Subject: config: Fix matching monitor by description to allow space prefix (#9788) --- src/helpers/Monitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/helpers/Monitor.cpp') diff --git a/src/helpers/Monitor.cpp b/src/helpers/Monitor.cpp index 75c0d8b9..98f45cce 100644 --- a/src/helpers/Monitor.cpp +++ b/src/helpers/Monitor.cpp @@ -881,7 +881,7 @@ bool CMonitor::isMirror() { bool CMonitor::matchesStaticSelector(const std::string& selector) const { if (selector.starts_with("desc:")) { // match by description - const auto DESCRIPTIONSELECTOR = selector.substr(5); + const auto DESCRIPTIONSELECTOR = trim(selector.substr(5)); return szDescription.starts_with(DESCRIPTIONSELECTOR) || szShortDescription.starts_with(DESCRIPTIONSELECTOR); } else { -- cgit v1.2.3