mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-06 03:32:14 +00:00
Enhancements
Fix bad conversion of DOMAIN-SUFFIX rules when generating Surge DOMAIN-SET. (#667) Optimize codes.
This commit is contained in:
6 files changed
+57
-12
No files matched your search
@@ -244,6 +244,8 @@ std::string getRuleset(RESPONSE_CALLBACK_ARGS)
|
||||
continue;
|
||||
if(filterLine())
|
||||
continue;
|
||||
if(strLine[posb - 2] == 'X')
|
||||
output_content += '.';
|
||||
output_content += strLine.substr(posb, pose);
|
||||
output_content += '\n';
|
||||
continue;
|
||||
@@ -251,6 +253,8 @@ std::string getRuleset(RESPONSE_CALLBACK_ARGS)
|
||||
if(!std::any_of(ClashRuleTypes.begin(), ClashRuleTypes.end(), [&strLine](const std::string& type){return startsWith(strLine, type);}))
|
||||
continue;
|
||||
output_content += " - ";
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
lineSize = strLine.size();
|
||||
|
||||
Reference in new issue
Block a user