Skip to content

Commit

Permalink
monitor: bring back old description behavior
Browse files Browse the repository at this point in the history
this makes description match the beginning again. Fixes #8756
  • Loading branch information
vaxerski committed Dec 23, 2024
1 parent 68a5842 commit 2e2e2e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/Monitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2e2e2e2

Please sign in to comment.