MCPcopy Create free account
hub / github.com/TeleBoxOrg/TeleBox_Plugins / sanitizeTargetInput

Function sanitizeTargetInput

bs/bs.ts:384–391  ·  view source on GitHub ↗
(
  input: string | undefined | null
)

Source from the content-addressed store, hash-verified

382<code>${commandName} toggle mode</code>: 切换模式, 默认是按顺序优先发送, 发送成功就不继续. 可切换为每个目标都尝试发送`;
383
384function sanitizeTargetInput(
385 input: string | undefined | null
386): string | undefined {
387 if (!input) return undefined;
388 const trimmed = input.trim();
389 if (!trimmed) return undefined;
390 return trimmed;
391}
392
393function getTargetLookup(target: TargetRecord): any {
394 if (target.chatId) {

Callers 1

BsPluginClass · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected