remove nothing
This commit is contained in:
parent
3e2f81131c
commit
b7616e3f44
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required (VERSION 3.7)
|
||||
project (mastorss
|
||||
VERSION 0.5.6
|
||||
VERSION 0.5.7
|
||||
LANGUAGES CXX
|
||||
)
|
||||
|
||||
|
|
|
@ -157,6 +157,7 @@ std::vector<string> parse_website(const string &xml)
|
|||
str = std::regex_replace(str, restrip, "");
|
||||
str = std::regex_replace(str, std::regex("[\\r\\n] +[\\r\\n]"), "\n\n"); // remove space between newlines
|
||||
str = std::regex_replace(str, std::regex("[\\r\\n]{3,}"), "\n"); // remove excess newlines
|
||||
str = std::regex_replace(str, std::regex("^[ \t]*$"), ""); // remove nothing
|
||||
|
||||
for (const string &hashtag : watchwords)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user