fix: 修复 short-id 正则
Some checks are pending
build / build (push) Waiting to run

This commit is contained in:
xream
2025-02-22 14:25:06 +08:00
parent 4a07c02dc1
commit 7e75031e92
2 changed files with 2 additions and 2 deletions

View File

@@ -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();