MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / singleStringLiteral

Function singleStringLiteral

src/mcp/dynamic-boundaries.ts:76–79  ·  view source on GitHub ↗

Exactly one quoted literal and no concatenation → that literal is the key.

(text: string)

Source from the content-addressed store, hash-verified

74
75/** Exactly one quoted literal and no concatenation → that literal is the key. */
76function singleStringLiteral(text: string): string | undefined {
77 const m = text.match(/^[^'"`]*(['"`])([\w.:-]{2,64})\1[^'"`]*$/);
78 return m ? m[2] : undefined;
79}
80
81const FORMS: FormSpec[] = [
82 {

Callers 2

scanPythonGetattrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected