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

Function quotedNamesIn

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

Source from the content-addressed store, hash-verified

285
286/** Names written in backticks, single quotes or double quotes. */
287export function quotedNamesIn(question: string): string[] {
288 const found: string[] = [];
289 const pattern = /[`'"]([A-Za-z_][A-Za-z0-9_]*(?:\.[A-Za-z_][A-Za-z0-9_]*)*)[`'"]/g;
290 let match = pattern.exec(question);
291 while (match !== null) {
292 found.push(match[1]);
293 match = pattern.exec(question);
294 }
295 return found;
296}
297
298/**
299 * Words shaped like a symbol: camelCase, PascalCase or dotted.

Callers 3

aboutSelectionFunction · 0.90
namedCandidatesFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected