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

Function getArgs

cy/cy.ts:84–89  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

82 limit: DEFAULT_LIMIT,
83};
84
85function getArgs(text: string): string {
86 const matched = prefixes.find((prefix) => text.trim().startsWith(prefix)) || mainPrefix;
87 const body = text.trim().slice(matched.length).trim();
88 const firstSpace = body.search(/\s/);
89 return firstSpace < 0 ? "" : body.slice(firstSpace + 1).trim();
90}
91
92function parseLimitFromParts(parts: string[]): number {

Callers 1

CyPluginClass · 0.70

Calls 1

searchMethod · 0.80

Tested by

no test coverage detected