MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / tokenizeSearchText

Function tokenizeSearchText

packages/core/execution/src/tool-invoker.ts:514–518  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

512 .trim();
513
514const tokenizeSearchText = (value: string): string[] =>
515 normalizeSearchText(value)
516 .split(/[^a-z0-9]+/)
517 .map((token) => token.trim())
518 .filter(Boolean);
519
520const prepareField = (value?: string): PreparedField => ({
521 raw: normalizeSearchText(value ?? ""),

Callers 4

prepareFieldFunction · 0.85
matchesNamespaceFunction · 0.85
scoreToolMatchFunction · 0.85
tool-invoker.tsFile · 0.85

Calls 1

normalizeSearchTextFunction · 0.85

Tested by

no test coverage detected