mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-21 04:31:35 +00:00
fix(outbound): satisfy target resolver lint
This commit is contained in:
committed by
Ayaan Zaidi
parent
cd3793185b
commit
116758e69a
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user