diff --git a/src/config/ConfigManager.cpp b/src/config/ConfigManager.cpp index cf5f5972..07c1f51f 100644 --- a/src/config/ConfigManager.cpp +++ b/src/config/ConfigManager.cpp @@ -1515,7 +1515,7 @@ void CConfigManager::parseLine(std::string& line) { const auto LASTSEP = currentCategory.find_last_of(':'); - if (LASTSEP == std::string::npos || currentCategory.contains("device")) + if (LASTSEP == std::string::npos || currentCategory.starts_with("device")) currentCategory = ""; else currentCategory = currentCategory.substr(0, LASTSEP);