From 324f3273f23ece834f56df277784e968f755c66c Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 10 Jul 2026 13:53:18 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=BA=A6=E6=9D=9F=E8=B0=83=E8=AF=95?= =?UTF-8?q?=E6=8E=A2=E9=92=88=20Kafka=20=E9=9A=94=E7=A6=BB=E6=A0=87?= =?UTF-8?q?=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/src/hwlab-node-lanes.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/src/hwlab-node-lanes.ts b/scripts/src/hwlab-node-lanes.ts index 7d96b32f..01232465 100644 --- a/scripts/src/hwlab-node-lanes.ts +++ b/scripts/src/hwlab-node-lanes.ts @@ -1319,6 +1319,8 @@ function webProbeWorkbenchKafkaDebugReplayConfig(value: unknown, path: string): const completionTimeoutMs = numberField(raw, "completionTimeoutMs", path); if (!/^[A-Za-z0-9._-]+$/u.test(topic)) throw new Error(`${path}.topic must use Kafka topic identifier characters`); if (!/^[A-Za-z0-9._-]+$/u.test(groupPrefix)) throw new Error(`${path}.groupPrefix must use Kafka consumer group identifier characters`); + if (!/(?:^|[.-])debug(?:[.-]|$)/u.test(topic)) throw new Error(`${path}.topic must identify an isolated debug topic`); + if (!/(?:^|[.-])debug(?:[.-]|$)/u.test(groupPrefix)) throw new Error(`${path}.groupPrefix must identify an isolated debug consumer group`); if (!Number.isInteger(completionTimeoutMs) || completionTimeoutMs < 1000 || completionTimeoutMs > 120000) { throw new Error(`${path}.completionTimeoutMs must be an integer between 1000 and 120000`); }