Parser: reformat and remove dead code
Cette révision appartient à :
Parent
cd7e99bf30
révision
a6c08a3447
11
parser.cpp
11
parser.cpp
@ -144,14 +144,3 @@ std::string Parser::parse(const PageDao &pagedao, UrlProvider &provider, std::st
|
|||||||
result = utils::strreplace(result, "\r\n", "<br>");
|
result = utils::strreplace(result, "\r\n", "<br>");
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
|
||||||
std::string Parser::parse(std::string content)
|
|
||||||
{
|
|
||||||
std::string result;
|
|
||||||
std::regex linkfinder("\\[((?:wiki)?link)\\](.*?)\\[/(?:wiki)?link\\]");
|
|
||||||
result = utils::regex_callback_replacer(linkfinder, content, [&](std::smatch &match) { return
|
|
||||||
this->processLink(match); }); std::regex
|
|
||||||
tagfinderregex("\\[(/?)(b|i|u|h1|h2|h3|table|tr|td|ul|ol|li|code|blockquote)\\]"); result = std::regex_replace(result,
|
|
||||||
tagfinderregex, "<$1$2>"); result = utils::strreplace(result, "\r\n", "<br>"); return result;
|
|
||||||
}*/
|
|
||||||
|
Chargement…
Référencer dans un nouveau ticket
Block a user