Fix parse error with some Surge/Quantumult X subscriptions

This commit is contained in:
Tindy X committed 2020-05-01 14:04:06 +08:00
1 parent 94baa44870
commit 2c793a0f95
3 files changed
+7 -7

No files matched your search

+1 -1
View File
@@ -1298,7 +1298,7 @@ bool explodeSurge(std::string surge, const std::string &custom_port, std::vector
ini.IncludeSection("Proxy");
ini.AddDirectSaveSection("Proxy");
if(surge.find("[Proxy]") != surge.npos)
surge = regReplace(surge, "^[\\S\\s]*?\\[", "[");
surge = regReplace(surge, "^[\\S\\s]*?\\[", "[", false);
ini.Parse(surge);
if(!ini.SectionExist("Proxy"))