mirror of
https://github.com/MetaCubeX/subconverter.git
synced 2025-11-04 18:19:42 +08:00
Fix Clash rule provider did not trim domains and ip-cidrs
This commit is contained in:
parent
691193731f
commit
223d75a10a
@ -224,7 +224,7 @@ std::string getRuleset(RESPONSE_CALLBACK_ARGS)
|
|||||||
output_content += " - '";
|
output_content += " - '";
|
||||||
if(strLine[posb - 2] == 'X')
|
if(strLine[posb - 2] == 'X')
|
||||||
output_content += "+.";
|
output_content += "+.";
|
||||||
output_content += strLine.substr(posb, pose);
|
output_content += trim(strLine.substr(posb, pose));
|
||||||
output_content += "'\n";
|
output_content += "'\n";
|
||||||
continue;
|
continue;
|
||||||
case 4:
|
case 4:
|
||||||
@ -233,7 +233,7 @@ std::string getRuleset(RESPONSE_CALLBACK_ARGS)
|
|||||||
if(filterLine())
|
if(filterLine())
|
||||||
continue;
|
continue;
|
||||||
output_content += " - '";
|
output_content += " - '";
|
||||||
output_content += strLine.substr(posb, pose);
|
output_content += trim(strLine.substr(posb, pose));
|
||||||
output_content += "'\n";
|
output_content += "'\n";
|
||||||
continue;
|
continue;
|
||||||
case 5:
|
case 5:
|
||||||
@ -243,7 +243,7 @@ std::string getRuleset(RESPONSE_CALLBACK_ARGS)
|
|||||||
continue;
|
continue;
|
||||||
if(strLine[posb - 2] == 'X')
|
if(strLine[posb - 2] == 'X')
|
||||||
output_content += '.';
|
output_content += '.';
|
||||||
output_content += strLine.substr(posb, pose);
|
output_content += trim(strLine.substr(posb, pose));
|
||||||
output_content += '\n';
|
output_content += '\n';
|
||||||
continue;
|
continue;
|
||||||
case 6:
|
case 6:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user