mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-25 16:12:13 +00:00
refactor: dedupe provider lowercase helpers
This commit is contained in:
@@ -5,6 +5,7 @@ import {
|
||||
} from "openclaw/plugin-sdk/reply-payload";
|
||||
import { isPrivateNetworkOptInEnabled } from "openclaw/plugin-sdk/ssrf-runtime";
|
||||
import {
|
||||
normalizeLowercaseStringOrEmpty,
|
||||
normalizeOptionalLowercaseString,
|
||||
normalizeOptionalString,
|
||||
} from "openclaw/plugin-sdk/text-runtime";
|
||||
@@ -319,7 +320,7 @@ function consumePendingOutboundMessageId(params: {
|
||||
}): PendingOutboundMessageId | null {
|
||||
prunePendingOutboundMessageIds();
|
||||
const bodyNorm = normalizeSnippet(params.body);
|
||||
const isMediaBody = params.body.trim().toLowerCase().startsWith("<media:");
|
||||
const isMediaBody = normalizeLowercaseStringOrEmpty(params.body).startsWith("<media:");
|
||||
|
||||
for (let i = 0; i < pendingOutboundMessageIds.length; i++) {
|
||||
const entry = pendingOutboundMessageIds[i];
|
||||
|
||||
Reference in New Issue
Block a user