mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-18 11:27:26 +00:00
clean code - delete message
This commit is contained in:
committed by
Peter Steinberger
parent
f476c8b48b
commit
a0191426dc
@@ -357,7 +357,7 @@ function normalizeHeartbeatReply(
|
||||
ackMaxChars: number,
|
||||
) {
|
||||
const rawText = typeof payload.text === "string" ? payload.text : "";
|
||||
// Normalize away responsePrefix so a prefixed HEARTBEAT_OK still strips.
|
||||
|
||||
const prefixPattern = responsePrefix?.trim()
|
||||
? new RegExp(`^${escapeRegExp(responsePrefix.trim())}\\s*`, "i")
|
||||
: null;
|
||||
|
||||
Reference in New Issue
Block a user