mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-05 11:12:12 +00:00
Enhancements
Fix not correctly loading configuration file when api_mode is false. Add support for exporting Surge DOMAIN-SET. Add INSERT group match flag to match insert_url only. Optimize codes.
This commit is contained in:
3 files changed
+46
-21
No files matched your search
@@ -2051,7 +2051,7 @@ time_t dateStringToTimestamp(std::string date)
|
||||
|
||||
bool getSubInfoFromHeader(std::string &header, std::string &result)
|
||||
{
|
||||
std::string pattern = "(?:[\\s\\S]*?)^(?i:Subscription-UserInfo): (.*?)\\s$(?:[\\s\\S]*)", retStr;
|
||||
std::string pattern = R"((?:[\s\S]*?)^(?i:Subscription-UserInfo): (.*?)\s$(?:[\s\S]*))", retStr;
|
||||
if(regFind(header, pattern))
|
||||
{
|
||||
retStr = regReplace(header, pattern, "$1");
|
||||
|
||||
Reference in new issue
Block a user