Bug fixes

Fix compatibility issue for some ShadowsocksD subscription.
Fix some cross-platform configuration file reader bugs.
Add upload to Gist function.
Add append MANAGED-CONFIG to Surge configuration function.
Clean up codes.
This commit is contained in:
Tindy X
2019-11-15 14:10:27 +08:00
parent 2fbac6e520
commit 2b649ec25d
11 changed files with 351 additions and 274 deletions

View File

@@ -129,7 +129,7 @@ public:
string_multimap itemGroup, existItemGroup;
std::stringstream strStrm;
unsigned int lineSize = 0;
char delimiter = count(content.begin(), content.end(), '\n') <= 1 ? '\r' : '\n';
char delimiter = count(content.begin(), content.end(), '\n') < 1 ? '\r' : '\n';
EraseAll(); //first erase all data
if(do_utf8_to_gbk && is_str_utf8(content))