refix
This commit is contained in:
parent
d0b75ffba0
commit
61df4cdff1
|
@ -156,9 +156,8 @@ std::vector<string> parse_website(const string &xml)
|
||||||
str = std::regex_replace(str, recdata2, "");
|
str = std::regex_replace(str, recdata2, "");
|
||||||
str = std::regex_replace(str, restrip, "");
|
str = std::regex_replace(str, restrip, "");
|
||||||
str = std::regex_replace(str, std::regex("\\r"), ""); // remove \r
|
str = std::regex_replace(str, std::regex("\\r"), ""); // remove \r
|
||||||
str = std::regex_replace(str, std::regex("\\n +\\n"), "\n\n"); // remove space between newlines
|
str = std::regex_replace(str, std::regex("\\n[ \t]+\\n"), ""); // remove whitespace between newlines
|
||||||
str = std::regex_replace(str, std::regex("\\n{3,}"), "\n\n"); // remove excess newlines
|
str = std::regex_replace(str, std::regex("\\n{3,}"), "\n\n"); // remove excess newlines
|
||||||
str = std::regex_replace(str, std::regex("\\n[ \t]+\\n"), ""); // remove nothing
|
|
||||||
|
|
||||||
for (const string &hashtag : watchwords)
|
for (const string &hashtag : watchwords)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue
Block a user