MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / mentionsIn

Function mentionsIn

graph-ui/src/compiler/question-classifier.ts:275–284  ·  view source on GitHub ↗
(question: string)

Source from the content-addressed store, hash-verified

273 * the model to point at this syntax when a card is missing.
274 */
275export function mentionsIn(question: string): string[] {
276 const found: string[] = [];
277 const pattern = /@([A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*)/g;
278 let match = pattern.exec(question);
279 while (match !== null) {
280 found.push(match[1]);
281 match = pattern.exec(question);
282 }
283 return found;
284}
285
286/** Names written in backticks, single quotes or double quotes. */
287export function quotedNamesIn(question: string): string[] {

Callers 4

aboutSelectionFunction · 0.90
namedCandidatesFunction · 0.85
classifyQuestionFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected