Improved excess newline removal
This commit is contained in:
parent
8991c656c2
commit
7ba7b800ab
|
@ -147,6 +147,7 @@ std::vector<string> parse_website(const string &profile, const string &xml)
|
|||
str = std::regex_replace(str, reindyfuckup, "");
|
||||
str = std::regex_replace(str, redaclosing, "");
|
||||
str = std::regex_replace(str, reggboclosing, "");
|
||||
str = std::regex_replace(str, std::regex("\\n \\n]"), "\n\n"); // remove space between newlines
|
||||
str = std::regex_replace(str, std::regex("[\\n\\r ]{3,}"), "\n"); // remove excess newlines
|
||||
|
||||
for (const string &hashtag : watchwords)
|
||||
|
|
Loading…
Reference in New Issue
Block a user