mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-05 11:12:12 +00:00
Fix parse error with some Surge/Quantumult X subscriptions
This commit is contained in:
3 files changed
+7
-7
No files matched your search
@@ -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"))
|
||||
|
||||
Reference in new issue
Block a user