Parser: Fix segfault in command extraction
这个提交包含在:
父节点
89c662385d
当前提交
f349c7dc00
@ -72,7 +72,11 @@ std::string Parser::extractCommand(std::string cmdname, std::string content) con
|
|||||||
if(std::regex_match(content, match, reg))
|
if(std::regex_match(content, match, reg))
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if(match.size() > 1)
|
||||||
|
{
|
||||||
return match.str(2);
|
return match.str(2);
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return "";
|
return "";
|
||||||
}
|
}
|
||||||
|
正在加载...
x
在新工单中引用
屏蔽一个用户