config: Fix matching monitor by description to allow space prefix (#9788)
This commit is contained in:
parent
05eb0aa43d
commit
da2d7c3971
2 changed files with 5 additions and 5 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue