MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / parseAttrs

Function parseAttrs

source code/utils/claudeCodeHints.ts:124–130  ·  view source on GitHub ↗
(tagBody: string)

Source from the content-addressed store, hash-verified

122}
123
124function parseAttrs(tagBody: string): Record<string, string> {
125 const attrs: Record<string, string> = {}
126 for (const m of tagBody.matchAll(ATTR_RE)) {
127 attrs[m[1]!] = m[2] ?? m[3] ?? ''
128 }
129 return attrs
130}
131
132function firstCommandToken(command: string): string {
133 const trimmed = command.trim()

Callers 1

extractClaudeCodeHintsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected