Skip to content
Snippets Groups Projects
Commit 80f8e665 authored by Fabian Paus's avatar Fabian Paus
Browse files

RobotHealth: Fix regex

parent 5beccd92
No related branches found
No related tags found
No related merge requests found
......@@ -99,8 +99,8 @@ void RobotHealth::monitorHealthTaskClb()
std::string name;
std::smatch m;
std::regex e("^[a-zA-Z]+");
if (std::regex_search(e.name, m, e))
std::regex regex("^[a-zA-Z]+");
if (std::regex_search(e.name, m, regex))
{
if (m.empty())
{
......@@ -108,7 +108,7 @@ void RobotHealth::monitorHealthTaskClb()
}
else
{
name = m.front();
name = m[0].str();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment