mirror of
https://github.com/asdlokj1qpi233/subconverter.git
synced 2026-11-04 10:42:04 +00:00
Fix not correctly converting some Clash rule-providers
This commit is contained in:
1 file changed
+1
@@ -115,6 +115,7 @@ std::string convertRuleset(const std::string &content, int type)
|
|||||||
string_size pos, lineSize;
|
string_size pos, lineSize;
|
||||||
while(getline(ss, strLine, delimiter))
|
while(getline(ss, strLine, delimiter))
|
||||||
{
|
{
|
||||||
|
strLine = trim(strLine);
|
||||||
lineSize = strLine.size();
|
lineSize = strLine.size();
|
||||||
if(lineSize && strLine[lineSize - 1] == '\r') //remove line break
|
if(lineSize && strLine[lineSize - 1] == '\r') //remove line break
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in new issue
Block a user