diff --git a/backend/package.json b/backend/package.json index 32340dd..f1093aa 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.18.3", + "version": "2.18.4", "description": "Advanced Subscription Manager for QX, Loon, Surge, Stash and Shadowrocket.", "main": "src/main.js", "scripts": { diff --git a/backend/src/core/proxy-utils/preprocessors/index.js b/backend/src/core/proxy-utils/preprocessors/index.js index caf5e91..d9145bf 100644 --- a/backend/src/core/proxy-utils/preprocessors/index.js +++ b/backend/src/core/proxy-utils/preprocessors/index.js @@ -75,6 +75,8 @@ function Clash() { // 是否被引号包裹 if (/^(['"]).*\1$/.test(afterTrim)) { return `short-id: ${afterTrim}`; + } else if (['null'].includes(afterTrim)) { + return `short-id: ${afterTrim}`; } else { return `short-id: "${afterTrim}"`; }