From fc56df7bfde52d83b7e6ec26233df31486be3e64 Mon Sep 17 00:00:00 2001 From: xream Date: Sat, 15 Mar 2025 16:29:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=84=E7=90=86=20YAML=20`short-id`?= =?UTF-8?q?=20=E4=B8=BA=20`null`=20=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/package.json | 2 +- backend/src/core/proxy-utils/preprocessors/index.js | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) 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}"`; }