fix(outbound): satisfy target resolver lint

This commit is contained in:
张贵萍0668001030
2026-06-19 12:06:59 +08:00
committed by Ayaan Zaidi
parent cd3793185b
commit 116758e69a

View File

@@ -98,7 +98,7 @@ function normalizeQuery(value: string): string {
function stripTargetPrefixes(value: string, channel?: ChannelId, plugin?: ChannelPlugin): string {
const providerPrefixes = [channel, plugin?.id, ...(plugin?.messaging?.targetPrefixes ?? [])]
.map((prefix) => (prefix ? String(prefix).trim().toLowerCase() : ""))
.map((prefix) => prefix?.trim().toLowerCase() ?? "")
.filter(Boolean);
let target = value.trim();
while (target) {