mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 20:01:23 +00:00
correct format
This commit is contained in:
committed by
Peter Steinberger
parent
a0191426dc
commit
c08e8c0359
@@ -357,7 +357,7 @@ function normalizeHeartbeatReply(
|
|||||||
ackMaxChars: number,
|
ackMaxChars: number,
|
||||||
) {
|
) {
|
||||||
const rawText = typeof payload.text === "string" ? payload.text : "";
|
const rawText = typeof payload.text === "string" ? payload.text : "";
|
||||||
|
|
||||||
const prefixPattern = responsePrefix?.trim()
|
const prefixPattern = responsePrefix?.trim()
|
||||||
? new RegExp(`^${escapeRegExp(responsePrefix.trim())}\\s*`, "i")
|
? new RegExp(`^${escapeRegExp(responsePrefix.trim())}\\s*`, "i")
|
||||||
: null;
|
: null;
|
||||||
|
|||||||
Reference in New Issue
Block a user