Bug fixes

Fix line breaks not correctly processed in getruleset interface.
Fix missing initialization of managed_config_prefix in simpleToClashR interface.
Optimize codes.
This commit is contained in:
Tindy X committed 2020-02-15 20:15:48 +08:00
1 parent 700fbc5d8d
commit c798918f40
3 files changed
+18 -4

No files matched your search

+1 -1
View File
@@ -215,7 +215,7 @@ public:
lineSize = strLine.size();
if(lineSize && strLine[lineSize - 1] == '\r') //remove line break
{
strLine = strLine.substr(0, lineSize - 1);
strLine.erase(lineSize - 1);
lineSize--;
}
if(!lineSize || strLine[0] == ';' || strLine[0] == '#' || (lineSize >= 2 && strLine[0] == '/' && strLine[1] == '/')) //empty lines and comments are ignored