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

Function plain

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

Source from the content-addressed store, hash-verified

18const unquote = (value: string) => value.replace(/^(["'])(.*)\1$/, '$2');
19/** A plain value without its trailing comment or quotes. */
20const plain = (value: string) => unquote(value.replace(/\s+#.*$/, '').trim());
21/** "[push, pull_request]" or "push"; "{}" and "[]" are empty. */
22const flow = (value: string): string[] => {
23 const list = /^\[(.*)\]$/.exec(value);

Callers 1

linesOfFunction · 0.70

Calls 1

unquoteFunction · 0.70

Tested by

no test coverage detected