mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-26 20:45:15 +02:00
fix: normalize escaped newlines in send actions (#8768) (thanks @victormier)
This commit is contained in:
@@ -728,6 +728,9 @@ async function handleSendAction(ctx: ResolvedActionContext): Promise<MessageActi
|
||||
required: !mediaHint && !hasCard,
|
||||
allowEmpty: true,
|
||||
}) ?? "";
|
||||
if (message.includes("\\n")) {
|
||||
message = message.replaceAll("\\n", "\n");
|
||||
}
|
||||
|
||||
const parsed = parseReplyDirectives(message);
|
||||
const mergedMediaUrls: string[] = [];
|
||||
|
||||
Reference in New Issue
Block a user