Parser: Fix segfault in command extraction
This commit is contained in:
orang tua
e863b5261b
melakukan
538d9e8b2d
@ -71,8 +71,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 "";
|
||||||
}
|
}
|
||||||
std::string Parser::processLink(const PageDao &pageDao, UrlProvider &urlProvider, std::smatch &match) const
|
std::string Parser::processLink(const PageDao &pageDao, UrlProvider &urlProvider, std::smatch &match) const
|
||||||
|
Memuat…
x
Reference in New Issue
Block a user