From 7e75031e92c14b7c66db0493d488ff63f8cd1783 Mon Sep 17 00:00:00 2001 From: xream Date: Sat, 22 Feb 2025 14:25:06 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20short-id=20?= =?UTF-8?q?=E6=AD=A3=E5=88=99?= 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, 2 insertions(+), 2 deletions(-) diff --git a/backend/package.json b/backend/package.json index bbcf42409..e7a02b9d3 100644 --- a/backend/package.json +++ b/backend/package.json @@ -1,6 +1,6 @@ { "name": "sub-store", - "version": "2.16.52", + "version": "2.16.53", "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 2c866038f..caf5e91a7 100644 --- a/backend/src/core/proxy-utils/preprocessors/index.js +++ b/backend/src/core/proxy-utils/preprocessors/index.js @@ -63,7 +63,7 @@ function Clash() { // 防止 VLESS节点 reality-opts 选项中的 short-id 被解析成 Infinity // 匹配 short-id 冒号后面的值(包含空格和引号) const afterReplace = raw.replace( - /short-id:([ ]*[^,\n}]*)/g, + /short-id:([ \t]*[^#\n,}]*)/g, (matched, value) => { const afterTrim = value.trim();