diff --git a/backend/package.json b/backend/package.json index bbcf424..e7a02b9 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 2c86603..caf5e91 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();