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

Function pattern

graph-ui/src/browser-ai/relationship-answer.ts:20–20  ·  view source on GitHub ↗
(source: string)

Source from the content-addressed store, hash-verified

18/** Where a pattern says {name}: optional fillers, an optional article and kind noun, the name as typed, an optional kind noun. */
19const NAME = String.raw`(?:(?:${FILLER})\s+)*(?:(?:the|a|an|der|die|das|den|dem|des)\s+)?(?:(?:${KIND})\s+)?[@\x60'"]?([A-Za-z_][\w.:/]*)[\x60'"]?(?:\s+(?:${KIND})\b)?`;
20const pattern = (source: string) => new RegExp(source.replace('{name}', NAME), 'iu');
21/** One word between the name and the verb ("wird JSONBAgg überall aufgerufen"), umlauts included. */
22const WORD = String.raw`(?:[\p{L}\w]+\s+)?`;
23/** Where a German question asks from where; never its subject. */

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected