Compare commits

..

1 Commits

Author SHA1 Message Date
xream
b0c1157fe1 feat: 调整规则参数 2024-02-28 22:36:22 +08:00
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "sub-store",
"version": "2.14.229",
"version": "2.14.230",
"description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and ShadowRocket.",
"main": "src/main.js",
"scripts": {

View File

@@ -31,7 +31,8 @@ function SurgeRuleSet() {
const func = (rule) => {
let output = `${rule.type},${rule.content}`;
if (['IP-CIDR', 'IP-CIDR6'].includes(rule.type)) {
output += rule.options ? `,${rule.options.join(',')}` : '';
output +=
rule.options?.length > 0 ? `,${rule.options.join(',')}` : '';
}
return output;
};
@@ -75,7 +76,10 @@ function ClashRuleProvider() {
['no-resolve'].includes(option),
);
}
output += rule.options ? `,${rule.options.join(',')}` : '';
output +=
rule.options?.length > 0
? `,${rule.options.join(',')}`
: '';
}
return output;
}),