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

Function indentOf

graph-ui/src/browser-ai/code-facts.ts:31–31  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

29 go: 'go', rs: 'rust', java: 'java', c: 'c', h: 'c', cc: 'cpp', cpp: 'cpp', hpp: 'cpp', rb: 'ruby', sh: 'bash', kt: 'kotlin', cs: 'csharp', php: 'php', swift: 'swift' };
30const extension = (path: string) => (path.split('/').pop() ?? path).replace(/-tpl$/, '').split('.').slice(1).pop()?.toLowerCase() ?? '';
31const indentOf = (line: string) => line.length - line.trimStart().length;
32const bounded = (line: string) => line.length > LINE ? `${line.slice(0, LINE - 1)}…` : line;
33const escape = (name: string) => name.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
34

Callers 3

pythonFactsFunction · 0.85
shiftFunction · 0.85
definitionsOfFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected